Hello
You are correct. There is potencial for memory leaks which is why calling DiscardPanel is always essentail. Its responsible for cleaning up resources used by the panel ( activex, GDI etc... ). CVI calls DiscardPanel for you, but its not a good idea to depend on this, especially for complicated cases ( multiple panels in multiple threads ). In the case of this example, since all the panels are loaded in the same thread, you wont see any leaks since CVI is automatically calling DiscardPanel for you.
But better safe than sorry.
I hope this helps
Bilal Durrani
NI
Bilal Durrani
NI