[19035] in s-news-athena
[S] S-Plus Win 200 crashes on exit: SOLVED
daemon@ATHENA.MIT.EDU (Michael Prager)
Tue Aug 24 14:36:33 1999
Message-Id: <4.2.0.58.19990824141901.00a3c180@mail.bea.nmfs.gov>
Date: Tue, 24 Aug 1999 14:31:17 -0400
To: s-news@wubios.wustl.edu
From: Michael Prager <Mike.Prager@noaa.gov>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
I recently wrote that S-Plus 2000 crashed on exit after some
uses. MathSoft was able to trace this problem, and here, I pass on their
findings.
My code included functions that open a graphics device with the
graphsheet() function, specifying a name for that graphsheet. If that is
done without closing an *existing* graphsheet of the same name, S-Plus
issues a Fortran error message. However, in such cases, S-Plus will also
crash on exit.
The solution is to put a guiClose() call before opening the graphsheet; for
example:
guiClose("GraphSheet", Name = "Fred")
graphsheet(Name = "Fred", print.background = T)
This works whether an existing sheet is open or not.
Contrary to what many of us thought, the crashes were not caused by
corrupted files in the _Data or _Prefs directories.
MathSoft states that they will add this to the bug-fix list. Few vendors
today seem to put much effort into fixing bugs, and it is a pleasure to
work with one that does.
--
Michael Prager <Mike.Prager@noaa.gov>
NOAA Beaufort Laboratory
Beaufort, North Carolina 28516 USA
Standard Disclaimers: Opinions expressed here are personal
and are not otherwise represented. Any use of tradenames
in the above does not constitute a NOAA endorsement.
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news