Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handle Invalid with SHFileOperation ?? Say What??
Message
 
 
To
06/03/2003 15:21:12
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00761891
Message ID:
00762690
Views:
20
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform