Catching OS Exceptions in Windows using LDC

realhet real_het at hotmail.com
Tue Jul 7 13:43:48 UTC 2020


On Saturday, 4 July 2020 at 14:44:06 UTC, Kagamin wrote:
> try 
> https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-setunhandledexceptionfilter

Thank You, this was the winner for me.
Not just I can catch the OS Exceptions, I can check and alter the 
CPU state and decide to continue execution from an optionally 
modified cpu state, or just stop and show the error.

It needed some work, but this seems the best way for LDC2 Win64.


More information about the Digitalmars-d-learn mailing list