02-15-2014 03:31 PM
I occasionally have problems building a CVI project due to an error of the following type:
Failed to copy z:\CVI Projects\SCPI_Test_6485\cvibuild.SCPI_Test_6485\Debug\SCPI_Test_6485.exe to z:\CVI Projects\SCPI_Test_6485\SCPI_Test_6485.exe. File access permission denied
Build failed.
I most recently saw this with CVI 2013, but I have also seen it with CVI 2012. I tried to delete the executable, but I received a message from Windows stating that the file was in use by another process (this was after closing CVI). I didn't find an obvious entry in task manager for the process that had the file open. After logging off and then back in, I was able to build the project. I noticed that there was an old entry on this topic from 7 or 8 years ago. Has anyone one seen this problem with newer CVI versions and WIndows 7?
02-17-2014 10:18 AM
02-18-2014 10:13 AM
I can post screenshots the next time it occurs (if I remember). I have seen this problem on at least a couple of relatively small CVI projects. It is an intermittent issue, not repeatable by any sequence of steps that I am aware of. The applications typically involve GPIB communication with an instrument - trigger the instrument, take a reading, etc. I am currently running CVI 2013 on a Win 7 64-bit machine. I'm pretty sure that I also saw this on an XP box running CVI 2012 as well.
02-19-2014 11:19 AM
02-19-2014 05:30 PM
I use the Z: drive every day to save data. I checked the permissions and I have full control. The XP box did have a similar setup to my current machine.
02-20-2014 02:21 PM
02-21-2014 09:07 AM
Z: is a network drive. The problem doesn't occur often enough that I want to move the project to the local drive; it is more of an occasional nuisance. As for source control, I use TortoiseSVN. I don't know that this does any kind of automatic backups, but I suppose that it is possible. I will try to disable antivirus and/or firewall software the next time this occurs to see if that solves the issue.
02-24-2014 04:41 PM
It looks like this problem may be caused by the Windows Indexing Service running on the server. Other users have had similar issues with other types of files. I will continue to monitor the issue.
10-04-2017 12:53 PM
Hello There,
Is there any follow up on this issue? I often run into the same problem while CVI was almost done compiling my project and at the final linking stage, the program responded "Failed to copy (the exe file). File access permission denied. Build failed."
Sometimes, I can just exit CVI program then re-launch CVI to get a successful build. Other times, I will need to re-boot my Windows and re-launch CVI to make this work.
I am running LabWindows CVI 2015 on Windows 10 on a Dell XPS9360 laptop with SSD and file index off. I also found out that when this issue happens, even after exiting CVI program, I could not delete the exe file in question from Windows either.
10-05-2017 01:40 PM
Hello, if you are running into this issue I would recommend posting a new thread and linking back to this one. That way you will get more user traffic over your post.