[futurebasic] Re: [FB] Blockmove

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2004 : Group Archive : Group : All Groups

From: George Beckman <gbeckman@...>
Date: Sun, 30 May 2004 18:35:38 -0700
on 5/30/04 7:39 AM, Rich Love at richlove@... wrote:

> XREF@ Array% (960, 207)
> Array& = FN NEWHANDLE(397490)


Shouldn't you check to make sure you got the handle.

I pulled this from one of my projects.   If yu don't have the memory for
LineWidthSize you will get a system error.

tempHndl& = FN NEWHANDLE(_LineWidthSize)
LONG IF SYSERROR = _noErr

 do your stuff

end if  


I have also done this:

StrHndl&=FN NEWHANDLE(fileSize&)
LONG IF StrHndl&<>_nil

end if


If the handle is there, all is well, I would think.   If you are doing some
other tricky things that may move memory you may want to think about locking
the handle.   I am probably way off on the locking.   I have read so much
about when to lock and when not to lock that I am quite confused on the
subject.

gCellStrHndl&=FN NEWHANDLE(7000)
LONG IF SYSERROR = _noErr
 FN HLOCK(gCellStrHndl&)

-- 
Best Wishes,

George
mailto: gbeckman@...
http://www.pggp.com