[futurebasic] Do handles to resources need to be locked?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 1998 : Group Archive : Group : All Groups

From: JoeAtTIME@...
Date: Mon, 26 Jan 1998 15:16:51 EST
  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&)