In message ID <3e12ac75.34ccef35@...> on 1/26/98, JoeAtTIME@... wrote: > I was looking over some code in my program and all of a sudden I got > nervous. The following bit of code works, but should I be locking resHand& > before copying data from it? > > resHand&=FN GETRESOURCE(_"GeoJ",id) > err% = SYSERROR > siz& = FN GETHANDLESIZE(resHand&) > LONG IF resHand& <>0 and err%=_false > 'NOT err% > CALL SETRESLOAD(_True) > CALL LOADRESOURCE(resHand&) > adr&=PEEK LONG (resHand&) > recAdr&=@gGrad > BLOCKMOVE adr&, recAdr&, _bSz > END IF > CALL RELEASERESOURCE(resHand&) The short answer: no. Memory won't be moved around DURING a BLOCKMOVE operation, so you're fine. - sent via BulkRate (http://members.aol.com/gregneagle/bulkrate/)