Solved

Program crashes without Exception

Posted on 2008-10-13
3
1,191 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

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

Suggested Solutions

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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…

867 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

19 Experts available now in Live!

Get 1:1 Help Now