You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently none of the tutorials dispose the Contexts they create. I'm worried that this will lead to "ImageJ tutorials won't quit" issues. For example: run the LoadAndDisplayDataset tutorial - after closing the opened image and log, imagej will still be running.
The text was updated successfully, but these errors were encountered:
It is possible that we could solve this as a higher level... I assume it is still due to the polling thread set up by SCIFIO... but I couldn't come up with a better solution last time I tried, and I feel like maybe the tutorials are a good place to talk about context disposal anyway..?
For non-interactive tutorials, calling context.dispose() at the end is probably the correct thing to do.
For interactive tutorials, the UI comes up and they'll have to choose Quit or close the window anyway in order to quit, which should dispose the context.
The only tricky scenario is if an image window pops up without the main UI being shown—then what?
Currently none of the tutorials dispose the
Context
s they create. I'm worried that this will lead to "ImageJ tutorials won't quit" issues. For example: run theLoadAndDisplayDataset
tutorial - after closing the opened image and log, imagej will still be running.The text was updated successfully, but these errors were encountered: