LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Thread.cpp, line 1938

I got this error message when I was running my programm.
"thread.cpp", line 1938
labview version 6.1
 
I went to check "Task Manager", and it seemed like labview kept increasing memory its memory usage until there was not any left. so this error did not happen in the begining. It took some time.
 
Is this a bug of Labview6.1? Or where can I set up the maximum memory usage of this application so the computor won't be dead?
 
thank you.
0 Kudos
Message 1 of 2
(2,350 Views)
This may be cause by a bug in your program. LV does automatic memory management for you, and it's usually pretty good about it, but if you use functions that require more memory during run-time, LV will allocate more and more memory until you run out. Good examples of this are Build Array and Concatenate String. If you use these in a loop to build a large array and do it fast, you may run out of memory pretty quickly.
Try using the profiling tools in Tools>>Advanced (I don't think they exist in the base package) to see if you can pinpoint the consumption to one of your VIs. You should also read the white paper about memory management in LV. You can find it in Help>>Search the LabVIEW Bookshelf or by searching this site.
If this is consistent and you can't solve it, I suggest you post your code.

___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,348 Views)