Ross Levis wrote:
> 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?

You can call AddVectoredExceptionHandler. It will install a function that
will get called on every exception, no matter what (unless someone else
installs another handler later to block yours). Requires Windows XP.
Remember to call RemoveVectoredExceptionHandler after the DLL function
returns. Otherwise, your vectored handler will continue to be in effect
throughout your program, and you certainly don't want to ignore *all*
exceptions.

Where have you found such awful DLLs?

-- 
Rob


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

Reply via email to