Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!resnick From: resnick@cogsci.uiuc.edu (Pete Resnick) Newsgroups: comp.sys.mac.programmer Subject: Re: init and system heap question Message-ID: <1991Feb14.201510.26105@ux1.cso.uiuc.edu> Date: 14 Feb 91 20:15:10 GMT References: <1991Feb14.140439.4452@jarvis.csri.toronto.edu> Sender: news@ux1.cso.uiuc.edu (News) Distribution: na Organization: University of Illinois at Urbana Lines: 23 tracyn@dgp.toronto.edu (Tracy Narine) writes: >I have written an init that installs a device driver. A problem that >sometimes occurs at startup time is the device driver will not execute since >there is insufficient memory in the system heap. How can I expand the >system heap to that I will have enough memory for my driver to work? >I have noticed in technotes that there is a size resource for setting >program sizes. Will this also work for a init starting a driver? Inside Mac V, p. 352 says that for an INIT, create a 'sysz' resource, which should contain the number of bytes needed in the system heap as it's first long word. You get 16K by default. This includes the heap space for the INIT code and resources as well as the driver and its resources. pr -- Pete Resnick (...so what is a mojo, and why would one be rising?) Graduate assistant - Philosophy Department, Gregory Hall, UIUC System manager - Cognitive Science Group, Beckman Institute, UIUC Internet/ARPAnet/EDUnet : resnick@cogsci.uiuc.edu BITNET (if no other way) : FREE0285@UIUCVMD