How to recover from a EXCEPTION_STACK_OVERFLOW?



Hi,
I am writting an exception filter for my app that displays a message box and kills the app. The problem is that it does nothing if the exception is a stack overflow, because some stack space is needed to execute my error handling code...
I tried to use _resetstkoflw() but it doesn't help. Is there a way to recover some stack space in order to execute my handler before killing the app?
I am thinking about:
- modifying ESP by hand (risky)
- unblocking a thread in my handler, and execute my error handling code in that thread

Do you have better idea ?

Thanks.

--
Aurélien Regat-Barrel
.



Relevant Pages

  • Requested Registry Access is Not Allowed
    ... We have several applications that will be executing on multiple machines. ... will execute the apps. ... There are Permission Sets within the framework configuration tool, ... The app fails on the WriteEntry and the exception that is thrown is ...
    (microsoft.public.dotnet.framework)
  • RE: Requested Registry Access is Not Allowed
    ... > We have several applications that will be executing on multiple machines. ... > will execute the apps. ... > There are Permission Sets within the framework configuration tool, ... > machine that the app will run. ...
    (microsoft.public.dotnet.framework)
  • Re: disable double clicking attachments
    ... Double click a file and the app opens. ... There's no prompt to save it before the default action takes place. ... It does once you flag their attachment directory as deny execute. ...
    (microsoft.public.outlook.general)
  • Re: Launching an app under Vista with UAP enabled
    ... prompts the user for permission before running th e app. ... We really need a way to launch an app without user ... The following "execute" function is used to launch an app using the ... bSuccess = OpenThreadToken( ...
    (microsoft.public.development.device.drivers)
  • Re: Auditing SP Execute.
    ... > As long as the users only have execute permissions on the proc i.e. they ... This assumes that the app doesn't use a single ... > Jasper Smith (SQL Server MVP) ... >> particular sp was execute and by whom. ...
    (microsoft.public.sqlserver.security)

Loading