User forums > Help

Weird console issue

(1/2) > >>

CopperCAT:
Recently I dug up an old SDL project I would like to finish.

So, I installed CodeBlocks svn build rev 6088 (2010-01-15 13:16:56) on my Debian box. After some initial fiddling to get x86-64 binaries, I could get the Debug version to work.

However, for the Release version, when I change the application type from Console to GUI, my app won't run anymore. My SDL window appears (the right size as well) but stays blank and sits there. Pressing the Abort button does nothing, I have to do a "kill -9" from a terminal for it to disappear. Changing back to Console and it runs fine again...

It might be an SDL issue as well, I really don't know anymore. Its driving me nuts...

Anyone have an idea?

CopperCAT:
I noticed that when starting the app in gdb/debug mode, there's no problem at all :? It does not make sense to me...

MortenMacFly:

--- Quote from: CopperCAT on January 26, 2010, 12:32:47 am ---I noticed that when starting the app in gdb/debug mode, there's no problem at all :? It does not make sense to me...

--- End quote ---
This most likely points to issues in your code. In debug build the memory footprint is layout different (safely) so that memory leaks often will not occur.

CopperCAT:

--- Quote from: MortenMacFly on January 26, 2010, 06:59:37 am ---
--- Quote from: CopperCAT on January 26, 2010, 12:32:47 am ---I noticed that when starting the app in gdb/debug mode, there's no problem at all :? It does not make sense to me...

--- End quote ---
This most likely points to issues in your code. In debug build the memory footprint is layout different (safely) so that memory leaks often will not occur.

--- End quote ---

That might be true, but why doesn't it happen when enabling the console window? That option does not change anything in the compiled code...

MortenMacFly:

--- Quote from: CopperCAT on January 26, 2010, 10:02:06 am ---That option does not change anything in the compiled code...

--- End quote ---
There is. Look at the linker options. They are different (and that's exactly what the options does).

Navigation

[0] Message Index

[#] Next page

Go to full version