AS. I agree with the above voices that this is rather strange. I also agree that practically binding to TApplication.OnException will probably be enough ("if it looks like a duck ...")
However, if you really want RTL to ignore exceptions, there are ways.
Exception handlers are a plugin for low-level RTL, as well as heap management, etc.
You can see KOL (Key Object Library). In Delphi, 5 times I managed to create a 2K DLL.
This required the absence of many ordinary words, taken for granted. An exception was among them.
To enable exceptions in replacing the KOL RTL system, you had to do a few $ DEFINE, and then the code to add exception support for the IDE was unlocked.
I believe that you can still get this modular RTL version and grep for this $ IfDef and see which code is replaced with which. I believe there is a fair chance that you can undo this and make Windows avoid using Delphi RTL over exceptions. I donโt remember the details, but I believe that the Exception Delphi RTL handler is simply registered in the Windows kernel as a callback. And you can probably register it (register a null callback). I believe that you can find it in the RTL warehouse, but the modular RTL KOL will simply simplify the search.
source share