Solved

an unhandled exeption when closing a dialog

Posted on 1998-11-29
2
187 Views
Last Modified: 2010-04-01
the problem is in a MFC application:
when closing a dialog by system menu, an unhandled exeption occurs.
0
Comment
Question by:meravbd
2 Comments
 
LVL 5

Expert Comment

by:yonat
ID: 1178883
It is hard to know what the problem is without seeing some code. However, one of the common causes for such a behavior is accesing a dangling pointer. This means trying to do something with a pointer you have already deleted (for example, deleting it again or trying to dereference it).

If you post some code, we may be able to provide better help.
0
 
LVL 6

Accepted Solution

by:
stsanz earned 50 total points
ID: 1178884
Have you tried to execute your program in Debug mode ?
MFC assertion checks might help you.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
best sources to up-to-date in C++? 8 91
Best book to learn C++ 4 84
Why isn't object file created? 6 68
I could not set window to top 4 20
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

856 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