04-23-2015 11:05 PM
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
04-23-2015 11:07 PM
04-23-2015 11:13 PM
Thanks,
I will talk to the programmer to see if he understands what you said, as there is probably 10k lines of code.
AlPal
04-23-2015 11:22 PM
04-23-2015 11:48 PM
Yes, I know. I was just trying to give an idea of the program size. There are ~50k VIs.
04-23-2015 11:51 PM
The zip file of the program is 300Mb.
04-24-2015 06:35 AM
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.