[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1209
  • Last Modified:

Program crashes without Exception

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
sfun28
Asked:
sfun28
  • 2
1 Solution
 
sfun28Author Commented:
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
 
mapllcCommented:
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
 
sfun28Author Commented:
my catch-all wasn't working properly.  this article helped a lot:
http://www.thescarms.com/dotnet/unhandled.aspx

0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now