Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handle Invalid with SHFileOperation ?? Say What??
Message
 
 
À
06/03/2003 15:21:12
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00761891
Message ID:
00762690
Vues:
18
Hi Don,

Temporary remove FOF_NOERRORUI flag from flags you're passing to SHFileOperation so you can see what file causes this error. My guess is that you've one of the files/tables in that folder open exclusively and that causes the error. DISPLAY/LIST STATUS command will show the list of open tables and open files.

>Partial solution Found!
>
>Issuing a CLOSE ALL, closes any files opened with a Low Level File Function, thereby releasing the system file handle(s). Putting CLOSE ALL in my FOR..ENDFOR loop seems to cure the problem.
>
>But this is rather a heavy handed way of doing things. Let's say for example that I have tables or other files open that I want to use. If I could determine the file handle number associated with the Folder3 file name, then I could issue a FCLOSE(lnFileHandleNum); a much more elegant solution.
>
>Do you know how I can retrieve the file handle number of a specific open file?
>
>Thanks
>Don Lowrey
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform