User forums > Using Code::Blocks

Sample wxWidgets application under windows: terminated with status -1

(1/1)

whyisosad:
I created a wxWidgets project with default settings. Everything is ok when I compiled and started the program, but after closing the appliication window, I got message from CodeBlocks:

--- Quote ---Process terminated with status -1 (0 minutes, 1 seconds)
--- End quote ---
What's problem with it? I'm using wxWidgets-2.8.9, MinGW-5.1.4 and the newest nightly build on XP(with SP2) system.
PS:On my Debian system, it doesn't has this problem.

ollydbg:
It's normal in windows. There's no problem. :D

Jenna:

--- Quote from: ollydbg on December 20, 2008, 08:04:57 am ---It's normal in windows. There's no problem. :D

--- End quote ---

That's not right !!!

You created a dialog-based program I guessed, there the OnInit-function returns false if it ends, that leads to a program return-value of -1 on windows and 255 on linux  (at least on 64-bit linux).
In the frame-based sample it returns true, what leads to a program return-value of 0.

ollydbg:
Thanks for your reply.
Yes, I just meant that "It's normal that the main() function should return a value".

Navigation

[0] Message Index

Go to full version