This is the 'lastimage' window, used to create the web UI thumbnail/preview. It is not closing despite being Document.Close()'d and released. They don't close, resulting in an eventual "out of memory" error. This was discussed via email with Mike Miller not on the Comm Center.
This isn't a real problem, but while trying to reproduce one where windows "proliferate" and cause things to grind to a halt (at one site only!), I did notice that when simulating some windows were left open and depend on MaxIm's "lazy" closing of saved documents. Adding a Camera.Document.Close() after calling SimulateImage() in AcquireSupport makes things better.
Still, the simulated image stays open until it's time to do the next target. ???
If PtgPrefs.Simulate Then ' If simulating images (don't rotate for GEM)
SimulateImage simRA, simDec, simPA, Interval, MaxType, workFile, pixFmt ' This saves it to disk
Camera.Document.Close
Else
If Not c_haveRotator And Util.GEMWestOfPier And _