• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 445
  • Last Modified:

MS VC++ exit codes

I have run into a problem with MS Visual C++ 4.0 lately running under NT 4.0.  When I try debugging (console apps), the debugger bypasses all of my breakpoints and the program runs normally, but returns with the message "program has halted with exit code <hex number>."  This occurs for code that I have successfully debugged in the past.  This does not occur on a different machine running the same code.  I have resinstalled the compiler and that has not helped.  I am in desparate need of a solution
0
blh
Asked:
blh
  • 2
1 Solution
 
yonatCommented:
Maybe the program fails before main(). Do you have any global or
static variables?
0
 
blhAuthor Commented:
The program does not have any global or static variables.  There are a number of macros and preprocessor commands and that's it.  Note that I can no longer debug programs which I have in the past(I have not made changes to these programs since).
0
 
gaohongCommented:
Try this:

Rebuild all, then repeat your debug.

good luck
0
 
blhAuthor Commented:
Tried that to no avail.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now