Race condition in Javascript
Posted by
Avital Steinberg on
Aug 29, 2015; 6:43am
URL: http://imagej.273.s1.nabble.com/Race-condition-in-Javascript-tp5014186.html
Hi,
I am experiencing a problem with ImageJ: I open a few images. Then I select
an image and I want to run a command on it. The problem is that the command
is executed before the previous command (opening the image) is completed.
So - I get an error message saying that imageA is not open, and when I
click OK, imageA opens.
I didn't have this problem when I was running the same script in the macro
language.
Does anyone have a suggestion how to fix it?
Thanks,
Avital
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html