Alex,

That's not good news!  Is there any way to catch uncaught errors at the module 
level at least?

Jeff
________________________________
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Monday, June 21, 2010 1:27 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How to get GlobelErrorHandling working.



GEH for modules is broken in 10.1.


On 6/21/10 5:53 AM, "valdhor" <valdhorli...@embarqmail.com> wrote:





I haven't looked it up but does the uncaught error event bubble?

if so, I would add the event listener to both the main app and the 
systemManager.

this.addEventListener("uncaughtError", globalErrorHandler);
systemManager.addEventListener("uncaughtError", globalErrorHandler);

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
"reflexactions" <reflexacti...@...> wrote:
>
> OK I spotted the obvious error.
>
> systemManager.loaderInfo
> should be:
> systemManager.loaderInfo["uncaughtErrorEvents"]
>
>
> After that I am getting error that I forced into the main app but an error in 
> a module didn't show up in the GEH, it threw an error and went to the old std 
> popup window.
>
> Do I need to link in every module as it loads?
>
>
>
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
> "reflexactions" <reflexactions@> wrote:
> >
> > AFAIK this is player dependent right?
> >
> > So I have latest debug player 10.1.53.64.
> >
> > Using FB4/SDK3.2
> >
> > In the the main application mxml I have added a listener.
> >
> > systemManager.loaderInfo.addEventListener("uncaughtError", 
> > globalErrorHandler);
> >
> > But it never gets called.
> >
> > Is that the right way to do it?
> >
> >
> > If I load modules will uncaught error in those modules also bubble up to 
> > this error handler?
> >
>





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui




Reply via email to