Solved

Program crashes without Exception

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

837 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