C++ Exception
-
Hi ! I?'ve an application developed using MFC. When I run the project, a window will open. If I close the window manually (i.e by clicking the cross mark at the top left corner of the window), then an exception occurs. It states: Unhandled exception at 0x7c918fea in Perspective.exe: 0xC0000005: Access violation writing location 0x00000010. If I break this exception, Program control goes to a file called free.c How do I resolve this Exception?
-
Hi ! I?'ve an application developed using MFC. When I run the project, a window will open. If I close the window manually (i.e by clicking the cross mark at the top left corner of the window), then an exception occurs. It states: Unhandled exception at 0x7c918fea in Perspective.exe: 0xC0000005: Access violation writing location 0x00000010. If I break this exception, Program control goes to a file called free.c How do I resolve this Exception?
I'm betting this is nothing specific to Vista, so take it to the general VC++ section. However, I am not without compassion, so here are a few hints. If you alloc memory using new, dealloc with delete or delete [] as applicable. If you alloc using malloc, calloc, dealloc it with free. Don't deallocate the same block twice. Always initialize pointers correctly (valid value or NULL).
Steve S Developer for hire
__
-
Hi ! I?'ve an application developed using MFC. When I run the project, a window will open. If I close the window manually (i.e by clicking the cross mark at the top left corner of the window), then an exception occurs. It states: Unhandled exception at 0x7c918fea in Perspective.exe: 0xC0000005: Access violation writing location 0x00000010. If I break this exception, Program control goes to a file called free.c How do I resolve this Exception?
Are you trying to write into a memory location or a file?
Keshav Kamat :) India