Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: pitbullent on August 04, 2011, 02:23:28 am

Title: .EXE runs fine when launched from Win7 but F9 under Code::Blocks crashes hard..
Post by: pitbullent on August 04, 2011, 02:23:28 am
I can build the binary with C::B no problem and as stated when I launch it from Win7 explorer or terminal I have no problems..
But when I attempt to run within C::B using F9 for example, I get a hard crash with the message

"Process returned -1073741819 (0xC0000005)     execution time : blah blah"

So I don't know how it can be a bug in my code but it's obviously memory issues.  Also worth nothing is that when debugging (GDB) the program also runs smoothly.  Any ideas?
Title: Re: .EXE runs fine when launched from Win7 but F9 under Code::Blocks crashes hard..
Post by: Freem on August 04, 2011, 10:05:23 am
C::B's version?
W7 64b or 32b?

And some other stuff like that could make someone help you.

In short: give informations, don't just report your crash.
Title: Re: .EXE runs fine when launched from Win7 but F9 under Code::Blocks crashes hard..
Post by: oBFusCATed on August 04, 2011, 11:01:24 am
If it is a crash in his app, we can't help, only he can track the problem.
Also this kind of questions violate the forum rules.
Title: Re: .EXE runs fine when launched from Win7 but F9 under Code::Blocks crashes hard..
Post by: MortenMacFly on August 04, 2011, 11:12:03 am
Any ideas?
Without sources? No. Try checking your code with a tool like valgrind.
As we most likely cannot help at all I am locking this topic.
Title: Re: .EXE runs fine when launched from Win7 but F9 under Code::Blocks crashes hard..
Post by: thomas on August 05, 2011, 01:34:48 am
Probably trying to open a file without checking for success, or something...