Unfortunately, there is no unhandled error handler in the Flash Player.
The best you can do is use as much invalidation as possible so the code
that does the work gets called via the layout manager methods
(commitProperties, measure, updateDisplayList).  That way, in Flex 3 you
can turn on UIComponentGlobals.catchCallLaterExceptions, and listen for
a "callLaterError" on the systemManager.

 

The best way of course, is to test the app thoroughly so it never throws
an exception :-)

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Mathews
Sent: Monday, February 04, 2008 9:40 AM
To: [email protected]
Subject: [flexcoders] Global Error Catching

 

What would be the best way to catch errors globally? I do a lot of
error catching as I track them down, but because my app is running
inside of a .NET windows form, I need to capture any errors so that I
can send the message up to the form for display. Is there any way to
capture errors at the Application level of the mxml?

 

Reply via email to