[ACP-1362]  Windows staying open in MaxIm DL
Type Quirk
Priority Medium
Severity Minor
Component AcquireImages script, AcquireSupport library
Fixed In Version [8.18.1
Versions Affected [8.08.0
Severity Closed
Resolution Complete
Reported By Bob Denny
Resources Bob Denny
Start Date 8/17/2015

Description
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 _


Comments
8/6/2016 7:03:29 PM   Bob Denny
See this message from James MacCormac -- he's happy now, the windows are staying.
3/11/2016 12:11:15 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 912
Affected files /trunk/AcquireSupport.wsc (Modified)
/trunk/Script Components Master/AcquireSupport.wsc (Modified)
Check-in comment No longer close all windows in MaxIm at the end of a run. Cross our fingers. GEM:1362
3/11/2016 12:02:32 PM   Bob Denny
Oh geeze, more "leave it". Just remove the CloseAll(). We can cross our fingers.
2/18/2016 10:29:33 AM   Bob Denny
REOPENED - See this Comm Center thread, and specifically Richard Ditteon's request to leave the last image up in MaxIm after the run ends. Move the call to MaxIm.CloseAll() into SUP.Initialize()
12/5/2015 5:00:46 PM   Bob Denny
The dynamic trackbox saving (ACP-1355) somehow caused this to happen. I have disabled that feature.
10/31/2015 12:35:20 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 896
Affected files /trunk/AcquireSupport.wsc (Modified)
/trunk/Script Components Master/AcquireSupport.wsc (Modified)

/trunk/WeatherComponents/BoltwoodFile.wsc (Modified)
/trunk/WeatherComponents/SROWeather.wsc (Modified)
Check-in comment Polling improvements to file-based weather servers. GEM:1383 Close pointing image window only GEM:1362
10/7/2015 8:07:16 AM   Bob Denny
The time delays did not work. Nullifying the 'lastimage' creation logic resulted in great operation all night, no orphan windows. Need to post this on the MaxIm forum.
10/5/2015 2:30:59 PM   Bob Denny
"lastimage" window is staying open on some systems, despite being .Close()'ed. Added 1 sec delays in Mike Miller's AcquireImages to see what happens.
9/24/2015 3:14:06 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 874
Affected files /trunk/AcquireSupport.wsc (Modified)
/trunk/Script Components Master/AcquireSupport.wsc (Modified)
Check-in comment Restore the display of the last acquired image in MaxIm. GEM:1362
9/1/2015 10:21:43 AM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 871
Affected files /trunk/AcquireSupport.wsc (Modified)
Check-in comment Fix use of PlateStar object from closed Plate. Fatal crash of ACP! GEM:1362
8/21/2015 10:54:36 AM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 868
Affected files /trunk/ACP Help/relnotes.htm (Modified)
/trunk/Script Components Master/AcquireSupport.wsc (Modified)
Check-in comment Close work file window after saving just-acquired image. GEM:1362
8/17/2015 2:57:13 PM   Bob Denny
Actually Close it for the live or simulated image. Change made to AcquireSupport and tested.