[futurebasic] Re: [FB] Handle2zTXT

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2008 : Group Archive : Group : All Groups

From: "Pierre Zippi" <pierrezippi@...>
Date: Wed, 3 Dec 2008 07:04:05 -0600
THANK YOU!  (Yes, I know all caps is shouting!). Removing HLOCK /
HUNLOCK did the trick.
So... can I blindly remove ALL calls to HLOCK / HUNLOCK from all my
code as I move from FB2 to FB4?


On Tue, Dec 2, 2008 at 8:33 PM, Robert Purves <listrp@...> wrote:
>
> Pierre Zippi wrote:
>
>> Below is pretty much everything that involves CommentHndl&. Maybe
>> someone can see where the problem with CommentHndl (or other) lies.
>
>> HLOCK(CommentHndl&)      'lock handle so no move
>
>> FN lsAppendShortStr$(CommentHndl&,comment$)
>
>> HUNLOCK(CommentHndl&)                                     'unlock handle
>> now
>
>
>
>> LOCAL FN lsAppendShortStr$(lsHndl&,appendText$)
>
>>  SETHANDLESIZE(lsHndl&,oldSize&+appendSize&)
>
>> END FN
>
> Remove the calls to HLock() and HUnlock(), which have no useful effect in OS
> X, but will prevent SetHandleSize() from moving the relocatable block as it
> expands.
>
> Robert P.
>
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
>
>