Solved

an unhandled exeption when closing a dialog

Posted on 1998-11-29
2
176 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
Comment Utility
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
Comment Utility
Have you tried to execute your program in Debug mode ?
MFC assertion checks might help you.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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 learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now