Error 8 with Application Builder When I Create an Executable

Updated Jan 9, 2019

Reported In

Software

  • LabVIEW Professional
  • LabVIEW Application Builder Module

Issue Details

When I try to create an application with Application Builder, I get the following build error showing Error 8 occurred. as shown below

Solution

Common Solutions:
  1. Check permissions on the directory you are writing to. Sometimes when you try to build your application to a shared network drive, you might not have access to write to this drive and you will receive Error 8. Having the Application Builder save your executable to a local drive will solve this issue.
    1. Make sure you are compiling using the Windows administrator user (especially if you are compiling to restricted directories, such as root C:\)
    2. Make sure the folder where you are compiling to is empty and there are no other filed that the application builder needs to overwrite.
    3. Make sure you don't have open a previous version of the compiled application that could be using the same resources as the one that is compiling.
  2. If you are using an auto-backup feature on your system, it can lock files that are not currently backed up. This will receive Error 8 because the auto-backup feature will request administrative privileges to edit or remove a file that is not currently backed up. Either turn off this feature or save the files in a different location that does not have this feature running. 
  3. Either another application is accessing the same file or the file is already open when you are trying to create the executable. For more information please refer to the KB: Error 8 When Writing to or Reading from a File
  4. Windows Firewall or the local Anti Virus program is blocking the application. Disable both and try to build the application.
 
Another Possible Solution:

If your error file says:
This error can be due to an option selected while setting up the build for your executable-Copy error code files in the Advanced section of Application Builder. Copy error code files adds copies of XML-based LabVIEW error code text files from the project\errors and user.lib\errors folders to the run-time engine. 

You can fix the issue by following these steps:
  1. From the Project Explorer view right click Build Specifications. Select New»Application (EXE).
  2. Select the Advanced category of Application Builder and uncheck Copy error code files option as shown below:


If you rebuild your application, the error should no longer appear.

Additional Information

Note: For VI's built in 8.5 that have been compiled to LabVIEW 2009 or higher, you may also need to uncheck the Use LabVIEW 8.x file layout option, when rebuilding your application, as shown below:

WAS THIS ARTICLE HELPFUL?

Not Helpful