Mr.James,
Thanks for your attention.
Actually I have 10 bitmaps each to display signal strength
like bmp10, bmp20, bmp30... bmp100.
Based on the actual signal strength, I am deleting the old
bitmap using
- Code: Select all Expand view
DeleteObject( oSignalStrength:hBitmap1)
When there is no any change in the signal strength and when I quit
the application, no bitmap is left on the desk top. But when there is
a change in the signal that means when several bitmaps are called
one after another, the last bmp is left on the screen.
I suspect that the following code is not able to delete the bitmaps at all
and the handles of those bitmaps are still left in memory leading to a
leakage.
- Code: Select all Expand view
DeleteObject( oSignalStrength:hBitmap1)
If you look at the TmsgBar Class you will not find anywhere a logic which
can release the bitmap handles when the object is ended.
- Ramesh Babu P