Recover hidden stack by batch mode after closing the macro

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

Recover hidden stack by batch mode after closing the macro

Salim Kanoun
Dear all,

I would like some information about the batch mode in a macro,

I use several plugins to process images, I don't really need the opened
stacks so I wanted to hide them to free my screen, focus on the plugin I
need and free the task bar (I don't want to close them, with the hide those
stacks are still available for others plugins).

In a macro level I can successfully hide the stacks using the batch mode.

My problem is once the macro ended I can't recover the hidden stack and,
biggest problem, I can't close them resulting in a memory leak.

The only way I found to get the hidden stack back is to exit the batch mode
in the same macro, so I had to write a loop that wait for an event to show
and close the previously hidden stack.

I don't feel comfortable with that macro having to run continuously in the
background (and eating my CPU).

Did you have an idea how I can exit a previous batch mode in a new macro or
close all the stack, even hidden, to avoid a memory leak ?

Best regards,

Salim

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Recover hidden stack by batch mode after closing the macro

olivier BARDOT
Hi
Try setBatchMode("Exit and Display").
I works for me.
Hope this helps.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Recover hidden stack by batch mode after closing the macro

Salim Kanoun
Hello,

Thank you for your answer,

If i set setBatchMode("Exit and Display") i get the hidden stack back but
only if I run the command in the same macro that started the batch mode.

If I  start a batch mode in a macro and forget to exit it at the end of the
macro, the hidden stacks are completly lost.  Have you tried to start a
close a batch mode in two different macro ?

Best regards,

Salim

2015-06-02 15:11 GMT+02:00 olivier BARDOT <[hidden email]>:

> Hi
> Try setBatchMode("Exit and Display").
> I works for me.
> Hope this helps.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html