[futurebasic] Re: [FB] Blockmove

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

From: Rich Love <richlove@...>
Date: Mon, 31 May 2004 07:21:03 -0500
Yes, I do check for the handle but did not include it in my simple 
example.

Rich Love - Carnation Software
MacWise Terminal emulation for Macintosh
richlove@...
http://www.carnation-software.com
512 858-9234

On May 30, 2004, at 8:35 PM, George Beckman wrote:

> 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
>
> --
>
>

--
To unsubscribe, send ANY message to: futurebasic-unsubscribe@...