LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Does DiscardPanel also discard the controls?

I can't find any clear and unambiguous answer in the documentation or on this board. If I use DiscardPanel(), will all the controls also be discarded? If one of those controls is a graph, will all the plots and points also be discarded automatically?

I just want to be sure I won't leak memory if I write this code in the simple way.

- Ron
0 Kudos
Message 1 of 2
(3,117 Views)
Yes, discarding a panel also discards all controls on that panel, and by implication, all data used by those controls. So in short, that is fine and the intended usage.

Regards,

Alex
0 Kudos
Message 2 of 2
(3,112 Views)