Re: How to recover from a EXCEPTION_STACK_OVERFLOW?
- From: "Jochen Kalmbach [MVP]" <nospam-Jochen.Kalmbach@xxxxxxxxx>
- Date: Mon, 20 Nov 2006 11:23:39 +0100
Hallo Aurelien!
- modifying ESP by hand (risky)
static LONG __stdcall CrashHandlerExceptionFilter(EXCEPTION_POINTERS* pExPtrs)
{
if (pExPtrs->ExceptionRecord->ExceptionCode == EXCEPTION_STACK_OVERFLOW)
{
static char MyStack[1024*128]; // be sure that we have enought space...
// it assumes that DS and SS are the same!!! (this is the case for Win32)
// change the stack only if the selectors are the same (this is the case for Win32)
//__asm push offset MyStack[1024*128];
//__asm pop esp;
__asm mov eax,offset MyStack[1024*128];
__asm mov esp,eax;
}
// TODO: ...
}
.
- Follow-Ups:
- Re: How to recover from a EXCEPTION_STACK_OVERFLOW?
- From: Aurelien Regat-Barrel
- Re: How to recover from a EXCEPTION_STACK_OVERFLOW?
- References:
- How to recover from a EXCEPTION_STACK_OVERFLOW?
- From: Aurelien Regat-Barrel
- How to recover from a EXCEPTION_STACK_OVERFLOW?
- Prev by Date: How to recover from a EXCEPTION_STACK_OVERFLOW?
- Next by Date: Re: CreateFile() returns ERROR_ACCESS_DENIED to the user
- Previous by thread: How to recover from a EXCEPTION_STACK_OVERFLOW?
- Next by thread: Re: How to recover from a EXCEPTION_STACK_OVERFLOW?
- Index(es):
Relevant Pages
|