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
Solved

MS VC++ exit codes

Posted on 1997-04-14
4
402 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
object modeling - load and save functions 5 62
What is sub-make ? 2 71
VS2015 Redefinition errors 4 68
Embarcadero C++ builder XE10.1 Berlin TRegistry declaration 1 39
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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 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…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

839 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