• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • Last Modified:

an unhandled exeption when closing a dialog

the problem is in a MFC application:
when closing a dialog by system menu, an unhandled exeption occurs.
1 Solution
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.
Have you tried to execute your program in Debug mode ?
MFC assertion checks might help you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now