Say, we have a button. Then in awt_Toolkit.cpp we put some debug info to monitore WM_AWT_DISPOSE message processing. Now when we call removeNotify on the button AwtObject::scheduleDelete() sends the toolkit thread WM_AWT_DISPOSE message and the button object gets destroied properly. But when we just close our window with the button (thus exiting the application) AwtObject::scheduleDelete() sends WM_AWT_DISPOSE as usual but it doesn't reach the target that is the toolkit thread. So, the button object doesn't get destroied properly in the last case (only via system resources freeing). There is no problem with the button though, but when we deal with some specific resource it may not be destoied at all after the application exited.
###@###.### 2005-04-05 15:06:34 GMT