Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting when user exits a VFP .exe improperly
Message
From
26/11/1996 15:30:42
 
 
To
26/11/1996 07:06:32
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00013353
Message ID:
00013599
Views:
35
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform