Hello all,
I'm learning to write Pixinsight scripts, and I have a few questions.
To start with, when I load a view pick list to let the user select their target, with code like this:
... I often see all sorts of "zombie" views in the ViewLIst() left over from previous test runs of my code.
The older views were all "forceClose()" and even "Purge()" in code, and of course they are not showing on the screen.
Is there any way to get ride of these no-longer-needed images so they don't clutter the viewlist?
What is the best way to get rid of a temporary view that is no longer needed?
Thanks!
David McCallie
I'm learning to write Pixinsight scripts, and I have a few questions.
To start with, when I load a view pick list to let the user select their target, with code like this:
Code:
this.targetImage_ViewList = new ViewList( this );
this.targetImage_ViewList.reload()
this.targetImage_ViewList.scaledMinWidth = 300;
this.targetImage_ViewList.getMainViews()
... I often see all sorts of "zombie" views in the ViewLIst() left over from previous test runs of my code.
The older views were all "forceClose()" and even "Purge()" in code, and of course they are not showing on the screen.
Is there any way to get ride of these no-longer-needed images so they don't clutter the viewlist?
What is the best way to get rid of a temporary view that is no longer needed?
Thanks!
David McCallie