[comp.sys.apple] my QuitGS problem/TML Pascal II

TMPLee@DOCKMASTER.NCSC.MIL (03/07/90)

In case anyone cares, the problem I had getting QuitGS to work was
afterall not a problem of me or the system not doing something right.
And I do want to thank Dave for taking the time to try to help me, even
though in the end I was doing all the things I should.  As best I can
tell the problem is that the TML PAscal.II compiler is either slightly
buggy or gets into trouble when it starts running out of memory.  (The
reason I say the latter is that I seem to have to release/compact memory
sometimes in order to force a compile through.)  Anyway, if I try to run
my program immediately after having compiled it without rebooting it
doesn't work; I'm guessing that the compiler trashes some internal GS/OS
tables now and then that later cause troubles for whatever is next.
I've noticed that fairly frequently after having run the compiler parts
of the Finder are damaged -- you get the weirdest stuff displayed where
the cursor was when you click on an icon.  But if I reboot after having
run the compiler everything's fine -- the QuitGS call starts up
AEPC.SYSTEM like I want it to and then when I return from the PC I'm
back in my application.  I have to say that I'm quite impressed when I
think about it that it all works:  a GS/OS program calling a P8 program
which in turn starts up a (shudder) IBM MS/DOS PC program which in turn
returns back to the GS/OS program with only five keystrokes (shift, caps
lock, caps lock, 5, <cr>).  (Now if only I could get AE to answer my
letter about how to write a small piece of code on the PCT that would
automatically return control when executed from a .BAT file so that I
don't even have to enter those five keystrokes.)

TMPLee@dockmaster.ncsc.mil