Comment 1 for bug 242740

Revision history for this message
Mats (matsben) wrote :

These are actually two separate bugs. First first:
I can't reproduce it and I can't see how it can happen.
I register with the window manager to receive an event *before* the window is actually destroyed as:
    wm protocol $w WM_DELETE_WINDOW [list ::UI::DoCloseWindow $w "wm"]
and the chatstate array is only cleaned up when the window is actually destroyed. So the wpane member should be there during the WM_DELETE_WINDOW event.See: http://www.tcl.tk/man/tcl8.5/TkCmd/wm.htm#M44 The only logical explanation for this is if the window manager somehow destroys the window before sending the WM_DELETE_WINDOW event. Perhaps it would be worthwhile to test current cvs with a Tcl/Tk 8.5 instead.