Solved

MS VC++ exit codes

Posted on 1997-04-14
4
387 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
Comment Utility
Maybe the program fails before main(). Do you have any global or
static variables?
0
 

Author Comment

by:blh
Comment Utility
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
Comment Utility
Try this:

Rebuild all, then repeat your debug.

good luck
0
 

Author Comment

by:blh
Comment Utility
Tried that to no avail.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

743 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

17 Experts available now in Live!

Get 1:1 Help Now