[futurebasic] Re: HANDANDHAND failure

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

From: Jay Reeve <jktr@...>
Date: Sun, 29 Mar 98 02:43:43 -0000
Pastor Alain wrote:
>Many thanks to Osamu, Chris and Jay who helped me to solve my problem
>with HANDANDHAND call.
>Well, I am quite sure I read somewhere that the handles should be locked
>before calling that function.

Glad to help. As for locking the handles, consider:
  What if handleOne& and handleTwo& each have 200 bytes and are both 
locked. Suppose the memory manager has assigned them to addresses only 
256 bytes apart. If you ask it to append handleTwo& to handleOne& without 
unlocking at least one of them, there is obviously no way it can be done.

This case might be rare, but any other locked block following handleOne& 
would create the same problem.

>Did I quench your curiosity ? 

I enjoyed your clear description of your project, but my question 
actually referred to the DATA statement in the next line--It didn't 
appear functional to me, so I wondered.

*****
What a useful and elegant set of functions Osamu has posted for dealing 
with handles!!! I have just begun to use handles extensively myself. 
These will make it a thousand times easier. Thank you, thank you, thank 
you, Osamu.

I realize that Osamu's code may look like so much gibberish to programers 
who are not yet comfortable with using handles. Permit me to recommend 
that you copy them out and save them (or study them) anyway, as you will 
surely find them valuable someday. I hope Osamu will also make sure it 
gets onto the FB code sites.

 @^@
 =J= a  y