[futurebasic] FN HGETSTATE/FN HSETSTATE

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

From: tedd@...
Date: Wed, 28 Oct 1998 12:46:02 -0500
jonathan:

>Never call FN HLOCK and FN HUNLOCK on a handle.
>Instead call FN HGETSTATE, then FN HLOCK then FN HSETSTATE.
>Those who have had mystery crashes and already been there
>will nod wisely and say "yay", the others will read on...

Excellent point! However, where do you use HUNLOCK, or was that an ommission?

I specifically don't know, but it seems to make sense that the order should be:

   FN HGETSTATE
   FN HLOCK

   'do read/write or whatever needs locked stuff

   HUNLOCK
   FN HSETSTATE

Is that correct?

tedd

___________________________________________________________________
<mailto:tedd@...>	               http://sperling.com/