Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rutgers!apple!keith From: keith@Apple.COM (Keith Rollin) Newsgroups: comp.sys.apple Subject: Re: Memory release problem, IIGS Message-ID: <19456@apple.Apple.COM> Date: 25 Oct 88 18:13:23 GMT Article-I.D.: apple.19456 References: <8810250759.AA25134@crash.cts.com> Organization: Apple Computer Inc, Cupertino, CA Lines: 30 In article <8810250759.AA25134@crash.cts.com> pnet01!pro-sol!pro-newfrontier!kenv@nosc.mil writes: >This is for Keith Rollins in particular, and anyone else who wants to comment: >Wordbench, which is a P8 program, acts peculiarly when launched from P16 or >GS/OS. If you warm boot into Wordbench using P8 (1.4 and above), WB finds >available memory in RAM (up to several hundred K), then releases it on >quitting. If you boot into GS/OS first (or P16), then go to P8 and the >Wordbench system, it finds the memory, but on quitting usually does not >release it. Calling MMShutDown() at the end of your program WILL release the memory for you, as long as you are passing the Memory Manager the right ID. Wait a sec! This is a ProDOS 8 program? Doing Memory Management under ProDOS 8 is a little tricky. You'd have to get an ID from the ID manager in the Misc Tools, and use that for your NewHandle calls. You can't use the one returned by MMStartup, as that is the ProDOS 8 ID number ($3000 I think). However, MMShutdown should still release all of that memory. How are you checking to see if the memory is still around? Are you sure that it is still allocated? Or are the handles indeed purgeable but not yet purged. If the latter, then everything is OK. The memory will be reclaimed when something else needs it. Keith Rollin UUCP: amdahl\ Developer Technical Support pyramid!sun !apple!keith Apple Computer decwrl/ BITNET: keith%apple.com@relay.cs.net "You can do what you want to me, but leave my computer alone!"