Login  Register

*URGENT - getselectionbounds not working inside a while loop

Posted by rrmarino on Jan 21, 2014; 4:26am
URL: http://imagej.273.s1.nabble.com/URGENT-getselectionbounds-not-working-inside-a-while-loop-tp5006197.html

Hello All,

I apologize for writing urgent on the subject, but really is :(

I have a macro that I want to loop indefinitely, therefore I put a "while (1) { " in the beginning and a "}" in the end.

My macro has a getSelectionBounds(x,y,width,height) and on the second loop, I get an error message: " '[' expected in line 43. getSelectionBounds (x<,>y,width,height);

If I take that command out of my program, it works perfectly. If I take the "while (1)" it also works. I have checked for mismatching {s and }s and everything is alright.

Any clue? Or any other way of looping my program indefinitely? Unfortunately I can't post the code here, it is in other computer.

Regards,

Rodrigo
PUC RIO BRAZIL