Would it work in Flex (web) application as well?
Here is my code:
in main appication:
protected function globalErrorHandler(event:Event):void
systemManager.loaderInfo.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT _ERROR, onUncaughtError);
Somewhere at the run time I am generating an unhandled error. I see FP's popup error window and the same error goes into flashlog.txt, but I dont see it getting into onUncaughtError function. What am I doing wrong?
Are you adding these listeners before you generate the error?
Sure. I am waiting for one minute before I trigger an error. It would get into the handler if an error is generated in the main application file where I have my error handler code.
I have a very huge codebase following robotlegs framework.
I have regsitered Above Uncaught errors in my Main application file.
I was fortunate enough to get this event working in one of the files but could capture only ONE error out of multiple runtime errors inserted in program.
Any help will be much appreciated.