Out Of Memory Error Occurs When Building An Application (EXE)

Updated Aug 22, 2019

Reported In

Software

  • LabVIEW
  • LabVIEW Application Builder Module

Issue Details

I am trying to build an application through build specification from an LabVIEW project, but the following error message occurs during the build process. The error states that there is Not enough memory to complete this operation. What can I do to resolve this issue?
 

Solution

The error occurs when the LabVIEW compiler run out of memory, especially when it tries to compile large or complex VIs. There are several method that could potentially resolve the issue:
  1. Check whether there are redundant and outdated VIs can be removed from the build.
  2. Reduce the history buffer of chart and use data logging functions to record the data to external files, for example, TDMS files.
  3. Extending virtual memory usage for Windows OS that LabVIEW can access.
  4. Lower the complexity threshold to prioritize editor responsiveness over execution speed for the relevant VIs.
  5. Reduce the complexity of the VI by dividing the VI into subVIs.
  6. Use Plug-In Architecture that would enable the developer to build the program in smaller pieces instead of building an application as a whole.

Additional Information

On a 64-bit Windows operating system, LabVIEW (32-bit) can access up to 4 GB of virtual memory without modification. LabVIEW (64-bit) can use up to 16 TB of virtual memory on Windows Vista (64-bit), Windows 7 (64-bit), Windows 8 (64-bit) and Windows 10 (64-bit). Therefore, the out of memory issue would be solved if you build the EXE using LabVIEW 2018 (64-bit) on 64-bit OS. However, as the limitations, LabVIEW 64-bit Run Time is required on the deployment end and there are some toolkits not available on 64-bit LabVIEW.

WAS THIS ARTICLE HELPFUL?

Not Helpful