Login  Register

kill a thread, macro, or plugin?

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

kill a thread, macro, or plugin?

John Alexander-7
72 posts
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
| More
Print post
Permalink

Re: kill a thread, macro, or plugin?

Wayne Rasband
1011 posts
> 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


>