User forums > Help
[10.05-Linux]-GUI Application Does Not Exit?
JeZ-l-Lee:
[10.05-Linux]-"GUI Application" Does Not Exit?
Hi,
Been using Code::Blocks for years and love it!
I recently switched from Windows(R) to Linux.
I installed Code::Blocks for Linux and am starting to use it.
I have a problem with Code::Blocks in Linux.
When I set project to "GUI Application" and run the application
and try to close the application, it does not close and freezes?
(have to go into "System Monitor" and kill it?)
The workaround is to set it to "Console Application".
Anyone know why this is happening?
Thanks!
Running Code::Blocks 10.05 on LinuxMint 12 KDE 64Bit.
Jesse
oBFusCATed:
You have to handle the onclose/onexit event. But please inspect the documentation for the gui toolkit you're using.
JeZ-l-Lee:
--- Quote from: oBFusCATed on February 20, 2012, 03:00:16 pm ---You have to handle the onclose/onexit event. But please inspect the documentation for the gui toolkit you're using.
--- End quote ---
Hi,
I don't understand.
I develop video games using Code::Blocks.
On Windows(R), I can set the game to "GUI Application"
and it does close properly in Code::Blocks.
But on Linux, when I set game to "GUI Application"
it does not close in Code::Blocks and freezes?
This is not a bug in Code::Blocks?
Thanks!
Jesse
oBFusCATed:
What happens if you run your application from a console or from .desktop file?
p.s. on linux there is no distinction between console and gui applications as is done on windows.
JeZ-l-Lee:
--- Quote from: oBFusCATed on February 20, 2012, 03:13:55 pm ---What happens if you run your application from a console or from .desktop file?
p.s. on linux there is no distinction between console and gui applications as is done on windows.
--- End quote ---
Hi,
When I run the executable built with Code::Blocks in console, it does close properly.
Only when I run it in Code::Blocks using "GUI Application" it does not close?
Thanks!
Jesse
Navigation
[0] Message Index
[#] Next page
Go to full version