?
Solved

MS VC++ exit codes

Posted on 1997-04-14
4
Medium Priority
?
419 Views
Last Modified: 2008-03-10
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
Comment
Question by:blh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Expert Comment

by:yonat
ID: 1162706
Maybe the program fails before main(). Do you have any global or
static variables?
0
 

Author Comment

by:blh
ID: 1162707
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
 
LVL 3

Accepted Solution

by:
gaohong earned 200 total points
ID: 1162708
Try this:

Rebuild all, then repeat your debug.

good luck
0
 

Author Comment

by:blh
ID: 1162709
Tried that to no avail.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question