Author Topic: program exit codes?  (Read 2249 times)

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
program exit codes?
« on: March 21, 2007, 11:52:50 am »
If I run my application the debugger says "Program exited with code 03."

What does it mean?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: program exit codes?
« Reply #1 on: March 22, 2007, 02:28:41 pm »
Not given any more information, nobody will be able to tell you.

If your program runs fine otherwise, and this is the only thing you see (program does not execute) if you run it in the debugger, this can mean (among other things) that you either
- have an uninitialised variable or you do some nasty variable alias trickery, or have order of global variable initialisation issues
- do something that throws a signal early at startup (certain Windows API functions do that in normal operation)

It it happens when you run the program normally, then it just means that your program exits with code 3, which, knowing nothing about your program, means pretty much nothing or anything.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."