Multiple threads
Posted by Douglas Benn-2 on May 06, 2010; 12:59am
URL: http://imagej.273.s1.nabble.com/Multiple-threads-tp3688389.html
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