01-10-2013 09:59 AM
I have a routine that would populate a big tree control. It takes a while, and that's fine. However, if I do it a couple of time, my computer crash. Should I somehow free up the memory after each load?
01-10-2013
10:25 AM
- last edited on
04-28-2025
10:00 AM
by
Content Cleaner
Hi Jiyang,
If the successive trees do have different sizes (notably increasing sizes), LabVIEW may try to allocate a new memory block to contain all the tree information. Arises a crash if LabVIEW does not have enough available memory.
Also, are you using references on your tree(s) ? If they're not closed, LabVIEW can consider the whole memory used for the tree to be an "active" memory, thus disabling LabVIEW from reusing previously allocated memory.
Regards,
Eric
Eric M. - Senior Software Engineer
Certified LabVIEW Architect - Certified LabVIEW Embedded Systems Developer - Certified LabWindows™/CVI Developer
Neosoft Technologies inc.
01-10-2013 10:51 AM
If the successive trees have different size, what should I do? I don't want it to allocate a new memory block for each one.
If I am using reference on my tree, but I am always using the same reference for successive tree. Would the same memory be used?
When i said crash, I meant the tree will continue to load indefinitely.