LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

A confusion of discarding resource

A picture ring control can hold some bitmap resource, using DiscardCtrl() to remove it from a panel. I'd like to know whether it is need to discard the ring's bitmap resource firstly before discard the picture ring control?

 

 

David

0 Kudos
Message 1 of 3
(2,762 Views)

I seem to remember that after loading the picture into the ring control you do no more need the bitmap resource. That is, if you dynamically load images with GetBitMapFromFile or similar function and SetCtrlBitmap or similar, you can DiscardBitmap immediately after these calls. If you load images with InsertListItem passing a filename as the itemLabel parameter, then you have no resources allocated other than the contro itself.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(2,753 Views)

Hi Roberto,

 

Thank you for your reply!

0 Kudos
Message 3 of 3
(2,748 Views)