>Who said anything about consuming handles?
>
>
> * Form.Load()
> If File(gcUserName + ".TXT") && Didn't get out properly
> * Perform your clean-up code
> Else
> lnHandle = FCreate(gcUserName + ".TXT")
> If lnHandle != -1
> = FClose(lnHandle) && Notice I'm releasing it here
> EndIf
> EndIf
>
> * Form.QueryUnload()
> If File(gcUserName + ".TXT") && I hope no one else erases it...
> Delete File (gcUserName + ".TXT")
> EndIf
>
>
>Got it?
>
>BTW, you put 'spice' in your coffee? :-)
It's still flawed... I hope no one erases it...Also, how do you detect that the person that created the file is still in the system or aborted improperly?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer