drew@cat18.CS.WISC.EDU (Shawn Drew) (12/05/88)
I've been having some trouble with my stack recently. I play a sound (11 Khz, about 5 secs.) and then call a XFCN repeatedly (about 30 times). Then the script finishes. If I try to start the script again, it just never plays the sound. The script is supposed to wait until the sound is 'done' before it goes on, but the sound is never 'done.' Once while doing this I got a System Error ID=25; Out of Memory! The XFCN does nothing 'weird.' All it does is some calculations. No handles are allocated, no ROM calls are made (except those made by the glue routines). The only thing I can think of is that the XFCN's were originally compiled with LSP 1.11 and now use LSP 2.0. AH HA!, you say, THERE'S THE CULPRIT! However I have faith in LSP and don't think that's the problem, as I don't remember ever TRYING to run the script twice in a row. Before the script is called, the heapspace returns 205320. After the script has been called, the heapspace returns 165094. What happened?????? I am running System 6.02 and UniFinder 6.1 under 1 meg. My system heap takes up around 250K. Does anyone know what's going on? Disclaimer: The opinions expressed in this article do not represent those of my employer. They're for sale, if you want them. drew@cat18.cs.wisc.edu Does the name Pavlov ring a bell?