Questions related about problems modifying files due a second programm with a read- or write-lock.
Questions tagged [file-in-use]
53 questions
1
vote
1 answer
"File In Use" error on Windows VirtualBox
Using Vagrant on a Windows Virtualbox, I'm receiving the error "File in Use" whenever I try to delete an asset from a shared folder on the Host OS or change its filename. This occurs after I load a file/asset through Nginx.
Windows Error
File In…

Ricky Boyce
- 1,772
- 21
- 26
1
vote
1 answer
Programmatically copy in-use files
In my C# code I want to be able to use some Shadow Copy mechanism in order to copy files that are being used by another process.
I've seen that solutions exist on the web, in enterprise or command line tools. But could it be done programmatically in…

Mugen
- 8,301
- 10
- 62
- 140
1
vote
3 answers
Using a MemoryStream to Load .jpg without blocking the file by process?
Im having a sort of an editor, that has some strings and a picture displayed in the ui and iam saving the data in a textfile and a detached .jpg file with the same name.
Now when iam trying to override the .jpg file by File.Replace, it says that the…

Marv
- 119
- 3
- 14
1
vote
0 answers
Modifying a "busy file" Linux VM in Virtual Box (Windows 7)
I am trying to modify my ace/ext-modelist.js using a shell script, the code is as follows:
#!/bin/bash
# This script will prepare ace for running properly
RM_EXTENSIONS=(elastic_tabstops_lite chromevox emmet statusbar error_marker keybinding_menu…

Otis Wright
- 1,980
- 8
- 31
- 53
1
vote
0 answers
Is there a POSIX way of determining if a file (serial port actually) is open-able without opening it?
We make a device that can appear as a USB serial port on a variety of POSIX-compliant systems. I'm supporting an API that allows callers to retrieve a list of all the currently available (i.e. not in use, have correct privileges, etc.) instances of…

Colby Boles
- 79
- 1
- 3
1
vote
0 answers
Windows 7 installer not showing FileInUse Dialog
I have created an installer in visual studio following normal procedure. I run my application. Task manager is showing it. I keep it open/running, and go to uninstall the application. But, windows (in which visual studio is not installed) does not…

JatiA
- 73
- 1
- 4
- 12
1
vote
2 answers
Lazarus: How to check if file is in use?
I need to check if a file is in use before I try to get access to it. Is there way to do it in Lazarus environment?

ThN
- 3,235
- 3
- 57
- 115
1
vote
1 answer
Error when writing to log while threading on web requests
I am building a program in visual studio 2010 using C# .Net4.0
I have a function that takes in a url and try to get a response. Inside the function, I write to a log file stating successes and errors.
public void getResponse(string url,…

sora0419
- 2,308
- 9
- 39
- 58
1
vote
0 answers
WIX: Non responsive app prevents install/update
We had deployed our Notification area (Tray) app with a fault. It had no top level window and therefore did not receive WM_CLOSE events. In short, if Windows Installer tries to close it with its built in functions during an upgrade or uninstall (it…

user2334883
- 401
- 4
- 4
1
vote
2 answers
Upgrading from a wildcard app ID to an explicit app ID to allow push notifications
I have an app that has about 300,000 members and I would like to add push notifications to it. Unfortunately I originally created the app with a wildcat bundle id com.MyCompany.* and when I uploaded it to Apple and when I edited it in my plist file…

Albert Renshaw
- 17,282
- 18
- 107
- 195
1
vote
3 answers
The process cannot access the file because it is being used by another process at deletion
I thought I solved this problem by closing and disposing my reader, but still in some cases the file was in use. Next I called the Garbage Collector, so the file will be released.
This solves 99% of all the issues which will bring up this…

Mixxiphoid
- 1,044
- 6
- 26
- 46
0
votes
0 answers
Get ProcessId that is using a file
IMPORTANT: we use DELPHI 7.
I have a problem to get the ProcessId that is using a file.
Just to let you know, in our software we need to show to the user what Process is using the file that we need.
To do that, I used NtQuerySystemInformation to get…

Michael Marcel
- 31
- 5
0
votes
1 answer
Automatically copy files in use
I have some files that are always in use and I want to make a copy of them automatically on another disk. I have tried Shadow Copy, but it does not put them in a specific path so that I can access them and send them in an email…

HASAN
- 1
- 1
0
votes
0 answers
Visual Studio C# How can I Load a Gridview Thumbnail without locking the source file for delete
I am loading a Visual Studio Gridview cell with a thumbnail. I need to be able to delete or rename the source thumbnail file based on user input. When I try to rename or delete the code returns the error that the 'file is use' when I load the cell…

HighwayRob
- 119
- 2
- 11
0
votes
1 answer
How to close the file after sending emails with an attachment?
I have a loop which sends email with an attachment to the people in emailing list. The problem is, when it comes to the last person in the list, the file I am attaching on email still stays as in use in Windows.
for index, row in f.iterrows():
…

segababa
- 146
- 1
- 8