kill a thread, macro, or plugin?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

kill a thread, macro, or plugin?

John Alexander-7
Is there a way to kill a rogue thread, macro, or plugin?  On occasion i
have one that gets caught in a loop or just runs too slow etc - and I
would like to just end it.
Reply | Threaded
Open this post in threaded view
|

Re: kill a thread, macro, or plugin?

Wayne Rasband
> Is there a way to kill a rogue thread, macro, or plugin?  On occasion i
> have one that gets caught in a loop or just runs too slow etc - and I
> would like to just end it.

Try pressing the Esc key. ImageJ aborts macros and plugins when they
run an ImageJ command and the Esc key has been pressed. Plugins that do
time-consuming processing should periodically call IJ.escapePressed()
and abort if it returns true. Built in filters, such as
Process>Filters>Median, do this.  There are examples at
<http://rsb.info.nih.gov/ij/plugins/escape.html>.

-wayne


>