🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.stats.s
Article #237

S plus closing / memory leak

#237
From: chris_culley
Date: Fri, 08 Dec 2006 11:37
44 lines
2873 bytes
hi there,

Bit of a long shot, but there are some gurus out there:)

I'm having S plus issues... I've got a model, written in VBA which runs
s plus commands, and takes several hours to run. I have set it up so
that I can run many many of these simulations back to back via a simple
script.

However, I think our model may have a memory leak, as eventually it
runs out of memory, and crashes.

A simple solution I have to this (without looking for the memory leak,
which I *will* do eventually) is to simpley open and close S plus from
my script every once in a while - forcing it do return memory to the
Operating System. This works nicely, and I close S plus simply by
passing it the "exit()" function.

However. I have noticed that S plus will close gracefully using exit()
_only_ if the commands window is open - otherwise it bombs and causes
my script to die. When we open S plus from excel (via vba), the
commands window is not open. I have to usre exit() rather than q() as
q() often presents clickboxes asking if you want to save anything,
which obviously my testscript cannot handle.

Does anyone have any suggestions? I have three possibles:

1. How can you suppress messageboxes in S plus?, then I might be able
to close it with q()

2. What command can be used to open the command window (I thought a
guiOpen sort of command must exist, but can't find it). Then I can
force it to use exit() properly.
Which came first? the chicken (command window) or the egg (command to
open the command window)?

3. Is there a command to remove all objects from S plus in one? then I
wouldn't have to worry about closing it, or my memory leak :)

It's incredibly frustrating, but I'm hoping very simple to solve!

thank in advance

Chris
Technical Details
Message-ID: <1165577861.227862.223790@79g2000cws.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!79g2000cws.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: fa931,3404d7f373aca4f0,start
X-Google-Attributes: gidfa931,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!79g2000cws.googlegroups.com!not-for-mail
From: chris_culley@yahoo.com
Newsgroups: aus.stats.s
Subject: S plus closing / memory leak
Date: 8 Dec 2006 03:37:41 -0800
Organization: http://groups.google.com
Lines: 45
Message-ID: <1165577861.227862.223790@79g2000cws.googlegroups.com>
NNTP-Posting-Host: 193.34.231.225
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1165577867 13220 127.0.0.1 (8 Dec 2006 11:37:47 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 8 Dec 2006 11:37:47 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.0 NETCACHE01 (NetCache NetApp/5.5R6D25)
Complaints-To: groups-abuse@google.com
Injection-Info: 79g2000cws.googlegroups.com; posting-host=193.34.231.225;
   posting-account=XOSUiA0AAAAQSJJRJpHbTDX-L7GVSC9q