fritzone
March 13th, 2009, 05:36 AM
Hi all,
I've got an interesting task to accomplish, maybe you can help me:
We're developing an application (managed C++ GUI with some native C++ libraries) which has a crash-dump functionality, creates a MiniDump when it crashes. Now I need to write some code which will intentionally crash the application so that it triggers the CrashDump functionality. We also have (mandatory) UnhandledExceptionEventHandlers installed, so that we get the "normal" exceptions. The scope of the crash dump would be to report crashes that are not caught by the handler.
till now I tried:
//int * p = 0; // not deadly enough, gives: System.NullReferenceException: Object reference not set to an instance of an object.
//*p = 0;
// _asm // gives System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
// {
// mov eax, 0
// push eax
// ret
// }
maybe you can help me with this issue, by supplying some code that actually crashed your app.
Thanks a lot
fritzone
I've got an interesting task to accomplish, maybe you can help me:
We're developing an application (managed C++ GUI with some native C++ libraries) which has a crash-dump functionality, creates a MiniDump when it crashes. Now I need to write some code which will intentionally crash the application so that it triggers the CrashDump functionality. We also have (mandatory) UnhandledExceptionEventHandlers installed, so that we get the "normal" exceptions. The scope of the crash dump would be to report crashes that are not caught by the handler.
till now I tried:
//int * p = 0; // not deadly enough, gives: System.NullReferenceException: Object reference not set to an instance of an object.
//*p = 0;
// _asm // gives System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
// {
// mov eax, 0
// push eax
// ret
// }
maybe you can help me with this issue, by supplying some code that actually crashed your app.
Thanks a lot
fritzone