Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting when user exits a VFP .exe improperly
Message
De
26/11/1996 15:30:42
 
 
À
26/11/1996 07:06:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00013353
Message ID:
00013599
Vues:
39
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform