01-10-2018 11:57 AM
Hi,
I've known for a while that Tree and MC Listbox controls can embed the custom symbols that I set through the Set To Custom Symbol Array method inside the VIs that contains them. After compiling, the executable can skip that method and still remember the custom symbols. So I guess my exe has to be bigger because it contains the png files I use for every single Tree and MC Listbox control.
However, I only "noticed" that and don't fully understand it. Anybody here knowledgeable about this topic? I wonder if it would be better practice to ensure the exe doesn't need to store the png inside itself, and place the actual png next to the exe so it can load the custom symbols at run time.
Thanks
Solved! Go to Solution.
01-11-2018 07:08 AM
Those images are properties and properties are stored in the control.
That can be desirable or not. It depends on whether you want it or not:).
Usually it's not worth worrying about a few kb. If it is a problem in your situation, make the application clear the symbols when it stops (not entirely safe since you can stop the code before it does the clear). Or make a pre-build action that finds all the tree\mclb controls and clear the symbols.