Solved

Program crashes without Exception

Posted on 2008-10-13
3
1,189 Views
Last Modified: 2012-06-27
Hi Experts!  I have a program that crashes in both debug and release builds.  When debugging using VS 2008, I get the message "VSHost32.exe has stopped working."  In release mode, I get "MyProgram has stopped working."  Something very bad is happening and I don't know where to start fixing this.  I have code that capture unhanded exceptions, but it isn't getting triggered.  Anyways, the debugger would stop at the exception.  In this case, my program just flat out crashes.  Please help!
0
Comment
Question by:sfun28
  • 2
3 Comments
 
LVL 1

Author Comment

by:sfun28
ID: 22707872
note that when I press "Debug" when the Release build crashes, I get the following message:
This may be due to a corruption of the heap, which indicates a bug in MyProgram.exe or any of the DLLs it has loaded.
0
 
LVL 2

Expert Comment

by:mapllc
ID: 22754637
Since you cant figure by it throwing an exception, some other options are:
   Debug via VS and put in breaks, see if the breaks ever even get hit or follow thru until it stops
   If console, but in some debug.writes/console.writes or if form application, try posting in some msg boxes.

Best of luck
0
 
LVL 1

Accepted Solution

by:
sfun28 earned 0 total points
ID: 22773771
my catch-all wasn't working properly.  this article helped a lot:
http://www.thescarms.com/dotnet/unhandled.aspx

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

705 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

20 Experts available now in Live!

Get 1:1 Help Now