Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Low Level File Command Error
Message
De
10/09/2003 09:03:13
 
 
À
10/09/2003 08:44:49
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Documentation de produit
Divers
Thread ID:
00827799
Message ID:
00827811
Vues:
14
>>I am experiencing an intermittant problem creating or opening text files. FOPEN and FCREATE both will occationally return an empty string rather than a numeric file handle. If I exit VFP and restart it works fine. I am running VFP7 SP1 on Win2k Pro Build 5 SP4. Any thoughts on this would be appreciated.
>
>Empty you mean -1 ?
>Check why you can't get the handle with ferror(). ie: Ferror() returns 5 for 'Access denied'. File might be open already, it might be included in porject and trying to get RW access etc.
>Cetin

Actually it is an empty string of about 10 char (I guess that should not be an empty string but a blank string) and not returning any errors. What is happening is that although the file handle is blank (not numeric) it does not return any errors on FGETS or FPUTS. It simply doesn't move any data around and although it creates a file cannot close the file as it hasn't a valid file handle. I am putting in some error trapping to check for this but would really like to figure out why this is happening and correct it if possible. This is just one step in a series of automated steps and having to stop and restart the process in the middle is less than appealing.

thanks jeff
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform