doyle@ingr.com (Doyle C. Davidson) (05/21/91)
--
Software: X11R4 & Motif 1.1
Hardware: Interpro 2020
I am trying to do nested XtMainLoops via the following code in several places:
while (notDone)
{
XtAppNextEvent(AppContext, &event);
XtDispatchEvent(&event);
}
The theory is that a dialog pops up another dialog which pops up another
and I don't want the code to continue until the respective dialog is
"ok"ed. (don't ask why, I am investigating this for someone else.
I know this is not the proper way):
...
popup_dialop();
wait_for_dialog();
continue_stuff();
...
If I do this nested more that two times, I (well the code actually :-)
almost always blows up. Coredumps, stuck in malloc, and other strange
effects occur once I unmanage my dialogs and exit the popdown callbacks.
In examining Xt source, it seems that I should be able to nest
these. Is there a limit on how deep or what can be done while
nesting (i.e. can't destroy widgets) or is my problem most likely
something in Motif? I am using Question and Information Dialogs
under Motif via XmCreateInformationDialog() with FULL_APPLICATION_MODAL.
Any clues?
Patient: Doctor, it hurts when I do that.
Doctor: Then don't do that!!
Doyle
-------------------------------------------------------------------
Doyle C. Davidson |
Intergraph Corp. | Intergraph - Everywhere you look!!
Third Party Software |
1 Madison Industrial Park |
Huntsville, AL 35806 | These comments are...
(205) 730-2000 |
| X-clusively my own.
..!uunet!ingr!doyle |
- or - doyle@ingr.com |
-------------------------------------------------------------------