Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!rocksanne!jhs From: jhs@rocksanne.UUCP (Hans Schlichter) Newsgroups: comp.windows.x Subject: destroying widgets recursively Keywords: toolkit, XtDestroyWidget Message-ID: <748@rocksanne.UUCP> Date: 5 May 89 17:05:16 GMT Organization: Xerox: Webster Research Center, Rochester, NY Lines: 20 The Athena Toolkit seems to have problems in destroying recursive widgets (is this an already known problem?). I have the following situation. I have a popup window A which has several fields and 2 buttons: apply, cancel. If I press "apply" and the fields contained an error, I popup another window B (popupshell) whose parent is A. B contains 2 buttons: correct, and cancel. Pressing "correct" in B, destroys B and I am back in A. Pressing "cancel" in B first destroys B and then destroys A; and that's when I run into problems. In the main event loop the routine XtDispatchEvent invokes XtPhase2Destroy which attempts to free a block which was already been freed (I found this by accident because I ran my program with memory verify on). I use a SUN 4-260 with OS4.0 and X11R3 /Hans Arpa-Net: schlichter.wbst@xerox.com UUCP: rochester!rocksanne!jhs