LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Not enough memory to complete this operation

  Hi, I'm using a Labview program to run a test. The program is running normally with 15 days and it suddenly popped up a message saying: Not enough to complete this operation. I'm not a computer guy and have limited knowledge about memory management. The program is converted to .EXE so I don't have access to the code. 

  Here are what I've done: 1. I used Labview desktop execution Trace Toolkit to trace the program and it showed that there are some reference leak in this program.  2. I used performance monitor to view memory usage of labview but the memory usage had not significantly increased over time.  3. I have increased virtual memory from 2Gb to 4Gb. The computer has physical16Gb physical memory and 11Gb left when error happens.

  I don't know how to locate this error. Since the program will stuck as the message pops out and will never become normal until I kill labview with task manager and restart it, it's very annoying. 

  The program doesn't crash at a accurate time. Sometimes it will crash after 8 days running. 

  Do you have some ways to monitor the program so that I can locate the error, like using some software to track the program and find out what operations it performed, how much memory was requested and rejected. 

  Thanks!

Download All
0 Kudos
Message 1 of 6
(348 Views)

Hi Chun,

 


@ChunBai wrote:

I'm using a Labview program to run a test.

The program is converted to .EXE so I don't have access to the code.


So you use an executable created with LabVIEW!?

 

Simple solution to your problem: ask the creator/programmer of that executable!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(342 Views)

Hi GerdW,

The programmer says this is a problem with my computer's hardware and there is nothing wrong with the program. I want to find out the reason so that I can tell the programmer that he need to repair this program.

0 Kudos
Message 3 of 6
(264 Views)

In general, the error states that LV doesn't have enough free memory available from OS for it to continue functioning and this limit is dependent on the bitness of the OS (number of addressable memory locations).

I bet the LV application was built in 32-bit and hence has access to <4GB RAM, though you have a lot more free memory.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 4 of 6
(256 Views)

Hi santo,

Windows task manager displays that this program usually uses 700Mb ~ 1.2Gb memory. So it didn't occupy much memory. This confuses me.

0 Kudos
Message 5 of 6
(232 Views)

If you open lots of references you can run out of available such (i think there's a limit of a million) although the memory itself isn't that big.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 6 of 6
(212 Views)