Solved

an unhandled exeption when closing a dialog

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

896 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

18 Experts available now in Live!

Get 1:1 Help Now