Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!wam.UMD.EDU!russotto From: russotto@wam.UMD.EDU Newsgroups: comp.sys.mac.programmer Subject: Re: CopyBits in MPW C 3.0 Message-ID: <8904171804.AA00203@vs03csc.UMD.EDU> Date: 17 Apr 89 18:04:36 GMT References: <225@uw-apl.UUCP> <6988@hoptoad.uucp> Distribution: na Organization: University of Maryland, College Park Lines: 25 In article <6988@hoptoad.uucp> tim@hoptoad.UUCP (Tim Maroney) writes: > >Try "CopyBits(*(BitMap **)mypixhandle, ...);" Incidentally, you >shouldn't be passing a pointer to something stored in a relocatable >handle to CopyBits or any other routine listed as allocating or >moving memory. Declare a Rect variable and assign the bounds >rectangle to that, then pass a pointer to the variable instead. >-- >Tim Maroney, Consultant, Eclectic Software, sun!hoptoad!tim I've never had any problem passing dereferenced handles to CopyBits-- I don't believe it is a routine that moves or purges memory (I believe it's temp buffers are on the stack) Actually, this almost has to be for VBL tasks to be able to draw... -- Matthew T. Russotto russotto@wam.umd.edu -- Matthew T. Russotto russotto@wam.umd.edu