This sounds like the try-catch is not being used as ( how I see ) intended.
As Alex mentioned, they are costly so unless you need it, skip it.
I suggest just adding an IOErrorEvent listener/handler to the caller, and
if/when the call is complete then remove the listener(s) for GC. In the
try, cat
exception here will be swallowed and not be caught in the
calling objects try-catch.
KFB
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of SJF
Sent: Tuesday, March 03, 2009 6:54 PM
To: flexcoders
Subject: [flexcoders] try, catch, finally ...
Technically,
I use try-catch but rarely do I find a need for finally. Finally is
optional and it is only needed if you absolutely need some piece of code
to run regardless of whether the code hits the try or the catch.
Personally, I feel like try/catch blocks are just good practice. Maybe
it was only the
Technically, it's good practice/professional to use try-catch-finally blocks
in your actionscript logic. This ensures a robust, easily debugg-able
application.
However, can anyone comment if they actually use try-catch-finally or
whether anyone is for or against it's use.
I ask because I've recei
4 matches
Mail list logo