Solved

MS VC++ exit codes

Posted on 1997-04-14
4
391 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
  • 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 100 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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 goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now