Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!zephyr.ens.tek.com!tektronix!gvgpsa!gvgpvd!andyp From: andyp@gvgpvd.GVG.TEK.COM (Andy Peterman) Newsgroups: comp.sys.mac.programmer Subject: Re: OpenResFile size Message-ID: <1454@gvgpvd.GVG.TEK.COM> Date: 16 Dec 89 18:53:46 GMT References: Reply-To: andyp@gvgpvd.GVG.TEK.COM (Andy Peterman) Organization: Grass Valley Group, Inc.; PVD Lines: 14 In article ml10+@andrew.cmu.edu (Michael A. Libes) writes: >To get an icon from an application, I call OpenRFPerm(...fsRdPerm) on >that application. The resource map, and other Resource Manager memory >structures, take up a HUGE amount of memory. For example, getting the >icon from THINK C requires 82K of contiguous space in my heap. > >Is there are way to tell the Resource Manager to take up less space? Try using SetResLoad(false) before your Open call and then SetResLoad(true) immediately after it. This will stop any preloadable resourses from automatically being loaded in. The resource map, however, will still be loaded. Hope this helps... Andy Peterman