Login  Register

Re: Multiple threads

Posted by Michael Schmid on May 06, 2010; 8:20am
URL: http://imagej.273.s1.nabble.com/Multiple-threads-tp3688389p3688390.html

Hi Douglas,

did you try the ThreadKiller plugin?
   http://rsb.info.nih.gov/ij/plugins/thread-killer.html

It uses a GenericDialog for selecting the thread, so it should be  
even macro-recordable.

Michael
________________________________________________________________

On 6 May 2010, at 02:59, Benn, Douglas K. wrote:

> Dear Colleagues,
>
> I am running a macro and within that macro I am running Orthogonal  
> Views using doCommand("Orthogonal Views") so I have a separate  
> thread. Orthogonal Views works fine for about 2 cursor point  
> selections on the axial view and then it ceases to function. I  
> think there is probably some sort of side effect from my main macro  
> code that is interfering with Orthogonal Views.
>
> I think a possible work around might be to execute the doCommand
> ("Orthogonal Views"), perform one cursor point click and then kill  
> the Orthogonal View thread. When my main macro returns to the top  
> of its loop I can restart Orthogonal Views with the doCommand
> ("Orthogonal Views") again.  I would like some advice please on how  
> to identify which of my 2 threads is Orthogonal Views so I can kill  
> the correct thread and also how to kill a thread.
>
> Thanks.
>
> Douglas
>
> Dr Douglas K Benn, BDS,DDS, M.Phil., Ph.D., Dipl. Dental Radiology  
> (Royal College of Radiologists, England).
> Professor and Director of Oral & Maxillofacial Radiology
> Dept of General Dentistry
> Creighton University Dental School
> 2802 Webster St, Boyne 210
> Omaha
> Nebraska 68178
>
> Tel: (402)280 5025
> Fax: (402)280 5094