[futurebasic] Re: [FB] Handle2zTXT

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

From: Robert Purves <listrp@...>
Date: Wed, 3 Dec 2008 15:33:05 +1300
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.