Catalin Sanda
Dec 8th, 2004, 08:43 AM
Hello,
I have a problem with the toolbar buttons. I bind a command to a toolbar button and a menu entry, depending on certain events I enable or disable the command, enabling or disabling the corresponding components, but after a while I get a NullPointerException because the command manager uses weak references and the GC deallocates the buttons.
What am I doing wrong?
Tks
Catalin
I have a problem with the toolbar buttons. I bind a command to a toolbar button and a menu entry, depending on certain events I enable or disable the command, enabling or disabling the corresponding components, but after a while I get a NullPointerException because the command manager uses weak references and the GC deallocates the buttons.
What am I doing wrong?
Tks
Catalin