Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!apple!well!oster From: oster@well.sf.ca.us (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: MoveHHi or NewPtr? Which end of heap? Message-ID: <21920@well.sf.ca.us> Date: 2 Dec 90 16:43:08 GMT References: <1990Nov30.013939.18568@midway.uchicago.edu> Distribution: usa Organization: Whole Earth 'Lectronic Link, Sausalito, CA Lines: 13 In article <1990Nov30.013939.18568@midway.uchicago.edu> fri0@quads.uchicago.edu (Christian E. Fritze) writes: >I've got ~75K of sound resources which I load into memory early during startup >of my application. Since they are already resources, it is more convenient to do a MoveHHi(), HLock() than it is to read them in, NewPtr(GetHandleSize()) them, BlockMove() them, and DetachResource() them. Just remember to do a SetApplLimit(MaxApplZone()) early in your program so MoveHHi() puts them in the right place. -- -- David Phillip Oster - At least the government doesn't make death worse. -- oster@well.sf.ca.us = {backbone}!well!oster