Thanks Rob. I would prefer a solution that also works on Win9x if possible. I was looking through MSDN and found SetErrorMode, but I'm not sure if this will help or not.
This particular DLL is a Winamp audio DSP plugin. http://tmsweb.dnsalias.com/tlim.htm I have successfully implemented a system of utilizing Winamp DSP plugins for my own audio player written with D7. Most DSP plugins work fine. The error for this one only occurs if the DSP is switched on and off using a button on the DLL window. Don't touch the button and it works fine. What is interesting is that the error doesn't occur when the plugin is used in Winamp. So Winamp must be able to somehow ignore the error, which is probably why the plugin developers do not realize there is a bug their DLLs, and why I'm having so many problems! Regards, Ross. ----- Original Message ----- From: "Rob Kennedy" <[EMAIL PROTECTED]> To: "Borland's Delphi Discussion List" <[email protected]> Sent: Wednesday, October 26, 2005 1:12 PM Subject: Re: Trapping Errors in DLL's again 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 _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

