• Register
0 votes
42 views

Problem :

Whenever I want to copy my 4 files into the bin folder, when I stop the main service, I always face an error with the one particular file (e.g. TexteDll). The error is as follows :

Cannot copy TexteDll: The requested operation cannot be performed on a file with a user-mapped section open

I guess it is happening may be due to some system locking. Or may be another process is using that DLL.

Can someone suggest a cause or solution for this ?.

6 5 3
7,540 points

1 Answer

0 votes

Solution :

It was observed in the past that the git diff locks the files as well until you quit out of git

And that will not be the case with the Git 2.23

The diff: munmap() file contents before running the external diff

While running the external diff from, the diff tool, it is safe to assume that we are trying to write the files which are in question.
Now on Windows OS, there must not be any other process locking an open handle to the files or the mapped region.

So please make sure that your git diff itself is not holding on any of the open handle to your files in question.

9 7 4
38,600 points

Related questions

0 votes
2 answers 912 views
912 views
Problem : I am new to git. I am creating the new rails application but warning in git about LF replacement. I do git init git add . and then boom! I see this pop up for almost all files. I always face below warning usually if I build the application then it ... your working directory. warning: LF will be replaced by CRLF in README. I am unable to understand the message. How can I fix the message?
asked Feb 24 mphil 2.3k points
0 votes
1 answer 108 views
108 views
Problem : My Windows Server 2012 VM was working without any issues, I just restarted it. After restarted my vm, I changed some of the settings and also attached the dvd drive it would boot up again. But now it gives below error: “Failed - The attempted operation cannot be ... to do it. Also I tried to reboot it, reset it but nothing is working and now it is not even in the running VMs list.
asked Feb 18 mphil 2.3k points
1 vote
1 answer 259 views
259 views
Problem : Currently I have newly joined a DLL project I am trying to write the class which has variables and functions in its header and the required definitions in the .cpp file. In my constructor I really have no problems but in my getMyPoint() function I often face below ... symbol errors in a same place, in the getMyPoint(). I am looking for C++ expert who can help me in fixing above error.
asked Apr 27 stewart 4k points
0 votes
2 answers 102 views
102 views
Problem : I have installed Git for Windows but when I try to use git command in Command Prompt I get the following message: 'git' is not recognized as an internal or external command, operable program or batch file.
asked Nov 18, 2019 peterlaw 6.9k points
0 votes
2 answers 15 views
15 views
Problem: What type of disk can be stored in a single file on a physical disk?
asked Apr 12 ArifulIslam 5.7k points