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

Updated May 4, 2022

Reported In


  • 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:

 Not enough memory to complete this operation.

How can I resolve this issue?


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. 

On a 32-bit Windows operating system, LabVIEW can access up to 2 GB of virtual memory by default. This can be extended to 3 GB by changing Windows' Boot Configuration Data store.