Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
8 ratings:
 4.12 out of 5   

Why Do I Receive Error Code 6 When Building an Executable?



Primary Software:
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I use the LabVIEW Application Builder to create a distribution (i.e. an application (EXE), a shared library (DLL), source distribution (LLB), or web service). When I create the distribution, I receive an error like the following:

Error 6 occurred at AB_Source_VI.Lvclass
Possible reason(s):
LabVIEW: Generic File I/O error.


What causes this error and how can I resolve it?

Solution:
When building a distribution, the build process may fail, citing Error 6 followed by the folder created from the temporary directory. (In the above example, the temporary directory would be AB_Source.) This error occurs when the file path of a file in the project extends beyond the 255-character limit allowed by Windows.  Perform the following troubleshooting steps to resolve the error and successfully build your distribution:
  1. Use a shorter path, like c:\
  2. Ensure that your file path is not pointing to an incorrect drive, such as a CD or DVD drive.
  3. For application (EXE) or shared library (DLL) builds, place a checkmark in the Use LabVIEW 8.x file layout checkbox on the Advanced page of the build specification Properties dialog box.


  4. For a source distribution or web service builds, uncheck the Preserve disk hierarchy checkbox on the problem on the Destinations build specification page located under the Destination type.

For more information on the Maximum Path Length in the Windows OS, visit the MSDN article File Names, Paths, and Namespaces.


Related Links:
KnowledgeBase 2D5BNHDT: What Are Some Advanced Abilities of the LabVIEW Application Builder?
External Link: MSDN: File Names, Paths, and Namespaces (Windows)
KnowledgeBase 4ZNDQ2P4: Why Does Build Specifications Not Appear in My Project Explorer?
Product Document: LabVIEW 2009 Known Issues

Attachments:





Report Date: 10/12/2009
Last Updated: 08/26/2016
Document ID: 52BF05ZY

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit