I posted a few weeks ago about trapping an AV exception produced from a 
DLL.  Cosmin suggested using SetUnhandledExceptionFilter, and this is 
working very well.

I now have an issue with a different DLL which is popping up an error 
dialog with "Invalid Floating Point Operation".  It does it randomly and 
I can click OK several times on the error dialog and then everything 
functions well until next time.

The SetUnhandledExceptionFilter is not working for this error.  I 
presume this is because the error is actually being handled, since it 
pops up a small dialog for clicking OK.

According to MadExcept, the error is an EInvalidOp exception occuring in 
msvcrt.dll in the function FTOL, which apparently is responsible for 
floating point to integer conversions.

Is there any (easy :-) way to have my app trap this error so I can 
ignore it?

I can't use try..except because this error is occuring while the DLL is 
doing it's own thing, not while running a function that my app has 
called.

Many thanks,
Ross. 

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to