darkman0101
Technical User
I have an application that uses a system Tray control that I have written (very similar to the one that MS give as an example) to put an icon in the system tray.
On the form that this control is attached to is a menu structure (created with the menu editor tool). When the systray icon is clicked this menu is displayed using
popupmenu mnuMenu,0,,,mnuItem
when this menu is loaded and displayed the memory usage jumps from 2584K to 2620 when the menu is shown to 2840K when an item is highlighted.
This memory is not released when one of the menu item is selected (even one that has nothing associated with it's click event).
How can I unload this menu?
Also
if you declare a variable as variant do you have to set it to nothing to release it's memory
Cheers in advance
Jas
On the form that this control is attached to is a menu structure (created with the menu editor tool). When the systray icon is clicked this menu is displayed using
popupmenu mnuMenu,0,,,mnuItem
when this menu is loaded and displayed the memory usage jumps from 2584K to 2620 when the menu is shown to 2840K when an item is highlighted.
This memory is not released when one of the menu item is selected (even one that has nothing associated with it's click event).
How can I unload this menu?
Also
if you declare a variable as variant do you have to set it to nothing to release it's memory
Cheers in advance
Jas