I have a function which check to see if there is a selection:
public static function testForSelection():void
var dSel:Array = app.activeDocument.selection.bounds;
model.fromMarquee = true;
model.fromMarquee = false;
trace("model.fromMarquee " + model.fromMarquee);
The first time the function runs with no selection it can take minutes to run. Any time after with no selection it run almost immediately.
I know the array is null but why would it take so long for the error to resolve?
This only happens in Photoshop 32 bit. Works fine in 64 bit.