LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 8 when building a program

Solved!
Go to solution

Hello,

 

I have tried searching this subject, and found a lot of helpful suggestions. Unfortunately, none of them have worked. I'm trying to figure out what could be left.

 

So, the full error is shown in the attachment. Just to explain, we have a laptop in our lab with a login of "eng_lab" - that is our username. We also have very strict controls here on permissions, installations, saving to network drives, etc.

 

What I have tried:

- Building file normally. Failed

- Checking the Temp folder for "read only". The box was filled in (blue square). Clicked to deselect read only entirely. Closed, tried to build again. Failed. Checked again, box was filled in again.

- Using ProcessExplorer to remove any other programs using that folder. Only thing left was LabView (a single DLL file I could not close). Still failed.

- Closing the anti-virus program using ProcessExplorer. Still failed.

- Saving to network drive. Failed. Gave another Error 8 message, but different than in the attachment. Same thing, though, permission error

- Saving directly to the C: drive (instead of to the desktop) to try to eliminate the user name aspect (I was getting desperate at this point). Failed. Still gave the same error as in the attachment

 

What I have not been able to try:

- Logging in from an admin account and seeing if that works (trying to get an IT person to help on that)

- Disabling firewall (can't do that without admin rights)

 

 

Are there any other causes for this error other than not having write permission to the file, the file being open or in use, or a program blocking writing to that file? Anything else I can try on my own? 

 

Thank you

 

0 Kudos
Message 1 of 19
(4,426 Views)

What version of Labview?

aputman
Message 2 of 19
(4,407 Views)

We are using LabView 2012, Version 12.0f3 (32-bit)

0 Kudos
Message 3 of 19
(4,401 Views)

Yep, that's what I figured you would say.  I came across some weird build errors that didn't make sense.  Check this link for the solution that I found that also seems to have helped others and maybe will help you as well.

 

http://forums.ni.com/t5/LabVIEW/Getting-Vague-Build-Error-When-Making-Executable/m-p/3196611#M926370

 

aputman
Message 4 of 19
(4,398 Views)

Thank you - I tried that just now, but it also failed (same error). I had the target folder, which I placed on the desktop, closed and it failed. I then deleted the target folder altogether (forcing LV to make a new one) and that also failed with the same error.

0 Kudos
Message 5 of 19
(4,393 Views)

It was worth a shot.  

 

Have you tried the suggestions in this article:

http://digital.ni.com/public.nsf/allkb/BAF0ACFA708F1D19862574C8005248E7

 

 

aputman
Message 6 of 19
(4,378 Views)

Yeah, I tried those - the only thing I can't really do without assistance from our IT department is the permissions on the Temp file itself. 

 

I deleted everything out of that temp file that I could (copying to a desktop folder in case it caused any issues). The only files left in the temp file are 5 files currently being used by LabView. Because they are in use, I can't delete them. I opened Process Explorer and closed all but the DLL file. It still ran into the same error.

0 Kudos
Message 7 of 19
(4,368 Views)
  • Close Labview and delete those Temp files and retry the build.  
  • Try setting your build directory in My Documents folder.  There shouldn't be a difference in security settings between Desktop and My Documents but it doesn't hurt to check.
  • I can't imagine that the TEMP directory is set to read-only, preventing the lvapp.lib from being copied into that directory.  But you could try to get rid of the blue box (meaning a file in the directory is set to read-only) and then check the box to apply to all folders and subfolders.  Maybe the build is trying to copy some files into a read-only directory within the TEMP folder.  
  • Do you have sufficient disk space?  
aputman
Message 8 of 19
(4,362 Views)

OK, closed LabView, and deleted the remaining files out of Temp. Opened the project and tried to build the program, but it failed again, giving the same error. I have attached a screenshot of the temp folder properties showing it is marked as read only. This was when the folder was completely empty. If I uncheck that, hit apply, and OK, then go back into properties it will be rechecked.

 

I also tried building to My Documents - that gave another Error 8...not the same one as before, but another permissions error.

0 Kudos
Message 9 of 19
(4,354 Views)

Post a screenshot of the other error message when built to My Documents.

aputman
Message 10 of 19
(4,349 Views)