Override fastfail in the dll to prevent whole app crash on STACK_BUFFER_OVERRUN (0xc0000409)

0

I use the C++ dll in the Delphi Application. The dll is compiled with /GS-. There is a bug in the dll causing crash of the whole appication with windows error 0xc0000409

This error occurs in the dll, so I can't debug it. Is there any way to catch such exception so that I could just reload the dll or at least get a chance to properly shutdown the application?

c++
dll
crash

1 Answer

0

No, there's no way to catch the 0xc0000409 exception. This is by design.

The rationale is that this is a security risk. The application is not in a state where it can safely proceed.

answered on Stack Overflow Mar 24, 2020 by MSalters

User contributions licensed under CC BY-SA 3.0