LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory Full error.

Hi, I am getting a gradual increase in system memory usage, that eventually results in a Memory Full error while writing a small (<Mb) file. If the error is cleared, the program continues, but eventually the error re-occurs.

Thanks for any suggestions.

AlPal

0 Kudos
Message 1 of 7
(4,011 Views)
You are leaking memory -- which means something you wrote is not right. Can't tell more without seeing your code. Make sure you are closing all your references.

Mike. .

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 7
(4,010 Views)

Thanks,

I will talk to the programmer to see if he understands what you said, as there is probably 10k lines of code. 

AlPal

0 Kudos
Message 3 of 7
(4,006 Views)
Well if there are lines of code, you are on the wrong forum. LabVIEW doesn't do lines of code...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 7
(3,996 Views)

Yes, I know. I was just trying to give an idea of the program size. There are ~50k VIs.

0 Kudos
Message 5 of 7
(3,987 Views)

The zip file of the program is 300Mb.

0 Kudos
Message 6 of 7
(3,981 Views)

The biggest memory issues I have seen deal with dynamically building arrays inside of loop, usually with the Build Array and Insert Into Array.  The alternative here is to initialize an array to the size you would expect and then use shift registers and Replace Array Subset to update the array.  The Build Array causes memory allocations with each call.  The replace array subset does not as it work in place.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 7
(3,936 Views)