Monday, September 8, 2014

As3 getStackTrace into release player

"For Flash Player 11.4 and earlier and AIR 3.4 and earlier, stack traces are only available when code is running in the debugger version of Flash Player or the AIR Debug Launcher (ADL). In non-debugger versions of those runtimes, calling this method returns null."


Add null pointer validation when using getStackTrace method or wrap related code into try catch statement if your manipulate with the returned value at once!
Otherwise your app can stuck during the using into release player. 

FYI: Debug stack trace in release builds of Flash Player available since
Flash Player 11.5 and Adobe AIR 3.5 SWF version: 18

So, stop to create hidden grenades which will be exploded into production:) 

No comments:

Post a Comment