Jack, There is the Application.OnException event handler which might be of help. There are some caveats, though: it might intercept exceptions that would be better handled elsewhere, and it might still not catch an exception raised by a COM object. Of course, you could programmatically set the OnApplication event to your handler before the block in which the exception might be raised and to nil afterwards, to help the first issue. However, I've had a problem with a third-party COM image viewer that, when it encountered a badly-formed GIF file, immediately crashed the Delphi application with no visible exception or warning: one second it was running, the next, gone, which seems worse behavior than Skye4COM.
http://www.chami.com/tips/delphi/011497D.html Bart > Date: Mon, 12 Nov 2007 11:33:59 -0800 > From: JLIST <[EMAIL PROTECTED]> > Subject:: How to suppress COM errors > To: Borland's Delphi Discussion List <[email protected]> > > I tried putting try-except blocks around calls to Skye4COM but it > didn't help. > > Is there a global exception handler that I can replace in order to > catch the uncaught exceptions? > > Thanks, > Jack ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

