Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!apple!portal!svc!daven From: daven@svc.portal.com Newsgroups: comp.sys.mac.programmer Subject: Re: Memory management problem Message-ID: <1990Aug16.203030.6326@svc.portal.com> Date: 16 Aug 90 20:30:30 GMT References: <1990Aug15.154812.9145@IRO.UMontreal.CA> Organization: Software Ventures Lines: 23 In article <1990Aug15.154812.9145@IRO.UMontreal.CA> dubuc@IRO.UMontreal.CA (Martin Dubuc) writes: >I tried to correct the problem by allocating more memory with: > > SetApplLimit((Ptr) ApplicZone() + 256000L); > MaxApplZone(); > >but the application now bombs when it calls MaxApplZone. I believe that calling MaxApplZone() should be sufficient. Setting the size of the ApplLimit by a fixed positive amount could cause problems. What happens if the user set the multifinder partition size to a value less that 256k? MaxApplZone() is supposed to expand the heap to it's fullest possible extend. Cheers! Dave Newman -- ------------------------------------------------------------------------------- Dave Newman - Sofware Ventures | daven@svc.portal.com | AppleLink: D0025 Berkeley, CA (415) 644-3232 | AOL: MicroPhone | CIS: 76004,2161 -------------------------------------------------------------------------------