Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!austing From: austing@Apple.COM (Glenn L. Austin) Newsgroups: comp.sys.mac.programmer Subject: Re: Expanding System Heap Message-ID: <28844@apple.Apple.COM> Date: 12 Apr 89 17:56:36 GMT References: <13002@dartvax.Dartmouth.EDU> Distribution: na Organization: Apple Computer Inc, Cupertino, CA Lines: 29 In article <13002@dartvax.Dartmouth.EDU> jskuskin@eleazar.dartmouth.edu (Jeffrey Kuskin) writes: > The problem: The system heap does not have enough free space > for me to be able to allocate a 40K block. I have so far > circumvented this problem by allocating a smaller buffer > and filling/emptying it several times. However, I would > like to be able to use a full, 40K buffer. > > The questions: > 1) Is there a way to increase the size of the system heap > at run time? That is, could the appication which installs > the interrupt handler increase the size of the system heap? This may be more suitable to network response. If you are loading as an INIT, you can use the sysz resource (a longint) to request that the System heap be enlarged by that amount, or you can grow the System heap yourself (as documented in IM 4). If you are doing this for an application, you don't really need to grow the system heap. Allocate your space in the application heap, since it is a "one program only" situation. ----------------------------------------------------------------------------- | Glenn L. Austin | The nice thing about standards is that | | Apple Computer, Inc. | there are so many of them to choose from. | | Internet: austing@apple.com | -Andrew S. Tanenbaum | ----------------------------------------------------------------------------- | All opinions stated above are mine -- who else would want them? | -----------------------------------------------------------------------------