Solved

an unhandled exeption when closing a dialog

Posted on 1998-11-29
2
182 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

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…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

776 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