[comp.sys.mac.programmer] Control Panel Crash in Low Mem

gauthier@ntmtv.UUCP (Jay Gauthier) (11/28/89)

Okay, here's the scoop.  We're developping an application for the MAC.
It  includes a couple of drivers that among other things listen to the
serial port.  These drivers are loaded in at INIT time and run all the
time.  The application that talks to these drivers works alright.

Now we bring up the Control Panel.  The system heap is quite full, but
there is some room left.  Now we generate some activity on the serial
port, which causes the drivers to allocate memory from the system
heap.  All of a sudden, the Control Panel disappears, and the mouse
freezes.  Things are still alive, the clock works, etc. but there is
only so much you can do without the mouse.

Here are the details:

Running MultiFinder, System 6.0.2, Finder 6.1, at least 2M RAM.

The crash happens on an SE with 2M and 2.5M, but *doesn't* happen on a
MAC II with 2M.

Any help would be greatly appreciated.

aTdHvAaNnKcSe

-- 

Jay Gauthier
BNR,   Mountain View  CA    (415) 940-2101
uucp: {hplabs,amdahl,ames}!ntmtv!gauthier

lemke@radius.UUCP (Steve Lemke) (11/29/89)

In article <378@ntmtv.UUCP> gauthier@ntmtv.UUCP (Jay Gauthier) writes:
}
}Okay, here's the scoop.  We're developping an application for the MAC.
}It  includes a couple of drivers that among other things listen to the
}serial port.  These drivers are loaded in at INIT time and run all the
}time.  The application that talks to these drivers works alright.
}
}Now we bring up the Control Panel.  The system heap is quite full, but
}there is some room left.  Now we generate some activity on the serial
}port, which causes the drivers to allocate memory from the system
}heap.  All of a sudden, the Control Panel disappears, and the mouse
}freezes.  Things are still alive, the clock works, etc. but there is
}only so much you can do without the mouse.

I've been having problems with NCSA Telnet freezing my machine after it
runs for a while - I finally decided that my heap was probably a bit full,
so I ran the program BootEdit that came on our Kinetics software disk,
(with the ethernet stuff) and allocated another 16K to the heap.  I haven't
had any lockups since.  So, the moral of the story is, make the system heap
bigger.  Mine is currently 176K.

-- 
----- Steve Lemke, Engineering Quality Assurance, Radius Inc., San Jose -----
----- Reply to: radius!lemke@apple.com    (Coming soon: radius.com ...) -----
----- AppleLink: Radius.QA;    GEnie: S.Lemke;    Compu$erve: 73627,570 -----