Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Sunday, October 29, 2017 9:51 PM
Hi I am suddenly getting this error loading a text file.
It has always worked and now on my main development PC it has stopped loading the file with the above error
Win 10 fully updated.
Even the compiled program prior to last win 10 update hangs. On other Pc's its ok and compiled works !!
This is code pretty straightforward
DBst = ""
FileOpen(2, FILEst, OpenMode.Input)
Do While Not EOF(2)
DBst = DBst + InputString(2, 1)
Loop
100: FileClose(2)
Is it to do with One Drive, the program was on part of One Drive but also does not work locally
The data files are not on One Drive.
The actual data is partially loaded
Odd ?
Steve
All replies (1)
Monday, October 30, 2017 5:48 AM
Hi Steve,
According to the error message, this issue should be caused by the file that you operated is used by other process. Please check whether it is read or write by other process. For example, the file is opened in File Explorer or read by other process from your program.
You could use Handle or Process Explorer to check which process uses your data file first. And you need to check whether there has other code in your program read the file but not close read process, please refer to:
In addition, since this issue only occurs on your main development machine, please make sure current Windows user has administrator permission. And make sure the Visual Studio is running as administrator.
Best Regards,
Weiwei
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].