Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing open file when application ended using task mana
Message
De
29/12/2007 23:11:11
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Oracle
Divers
Thread ID:
01278411
Message ID:
01278414
Vues:
18
Sergey, thanks for replying so quickly. How would performance compare between using STRTOFILE versus creating the file using fcreate, closing the file, then reopening in unbuffered write only mode and using fputs to write the data?

>>I am opening a low level text file to add temporary logging in an application to try to figure out where an application is freezing. The user eventually uses the windows task manager to end the program. How can I catch the fact that the application is being externally ended so I can close the file handle so the data in the file will be retained.
>>
>>Or is there another way to be able to create a text log file to capture what I need to try to track down where my application is freezing?
>
>Use STRTOFILE() to write each line. It doesn't keep file open.
>
>
>STRTOFILE(lcMessage + CHR(13) + CHR(10), lcLogFileName, .T.)
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform