[comp.windows.x] destroying widgets recursively

jhs@rocksanne.UUCP (Hans Schlichter) (05/06/89)

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

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (05/16/89)

> The Athena Toolkit seems to have problems in destroying recursive widgets
> (is this an already known problem?).

It is actually a KNOWN Intrinsics problem. 
                                                Chris D. Peterson
                                                MIT X Consortium

Net:     kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608
Address: MIT - Room NE43-213