Re: [flexcoders] Re: How to get GlobelErrorHandling working.

2010-06-21 Thread Alex Harui
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


RE: [flexcoders] Re: How to get GlobelErrorHandling working.

2010-06-21 Thread Battershall, Jeff
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






Re: [flexcoders] Re: How to get GlobelErrorHandling working.

2010-06-21 Thread Alex Harui
I should first clarify.  GEH is working for multiple SWF apps, except for 
modules.  I don’t have the details but I think it is because modules discard 
their loader right away whereas sub-apps generally do not.

The purpose of GEH is to catch all errors thrown that are not caught by 
try/catch blocks beforehand.  Flex does a significant amount of its work via 
the LayoutManager’s validation phases and all of those are wrapped in try/catch 
blocks that can be turned on by setting 
UIComponentGlobals.catchCallLaterExceptions=true.

If you can configure your app to do as much work as possible via 
invalidation/validation, more of those errors will be caught, but not 
everything will.


On 6/21/10 11:59 AM, Battershall, Jeff jeff.battersh...@dowjones.com wrote:






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