Unhandled exception at 0x00000000 in sample_dbg.exe: 0xC0000005: Access violation

Hello Friends,

I am getting following error.in my application.

"Unhandled exception at 0x00000000 in sample_dbg.exe: 0xC0000005: Access violation"

I am trying to open another dialog on the existing dialog. Dialog gets opened successfuly but while returning to parent window it cause this error.

thanks in advance
Can you use the debugger?

This is by far the best tool for fixing run time errors. Hopefully there is a debugger in your IDE - should be easy enough to use.

Access violation

do you have a destructor or delete somewhere that is trying to remove an existing object?
Last edited on
Thanks for reply brother,

I fixed this problem by creating static object of dialog. previously I was creating the same dynamically by using smart pointer.

Actully I was opening another dialog from the dialog which was created dynamically and when I was returning to the parent dialog this abnormal exception cause.

This might be because of returning to the referance which is allocated on heap.
Topic archived. No new replies allowed.