[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Program crashes without Exception

Posted on 2008-10-13
3
Medium Priority
?
1,207 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
[X]
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
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

649 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