Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!snorkelwacker!mintaka!ogicse!orstcs!mist.CS.ORST.EDU!boerned From: boerned@mist.CS.ORST.EDU (Dan Boerner) Newsgroups: comp.sys.mac.programmer Subject: Re: Resource Fork data storage--related question Message-ID: <19475@orstcs.CS.ORST.EDU> Date: 23 Jul 90 00:59:30 GMT References: <1990Jul17.172044.20361@Neon.Stanford.EDU> <1715MAYER-A@RICEVM1> <1990Jul22.230744.14761@Neon.Stanford.EDU> Sender: usenet@orstcs.CS.ORST.EDU Distribution: na Organization: Computer Science Department, Oregon State Univ. Lines: 13 In his response Philip asks > Why not store the result of GetResource directly into the array? I believe the answer is that GetResource allocates memory for a resource only once. The second time you call GetResource, it will return a handle to the same memory block as it did the first time. Therefore, you must copy the results of GetResource into a different block of memory for each different copy of the resource you want. Dan Boerner boerned@cs.orst.edu Oregon State University