[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
|
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
739.0. "Example of multiple shells?" by TOTALY::ROSSI () Mon May 08 1989 17:37
Even after reading note 201, multiple hierarchies are still not clear to me.
In my application I attempt to open several shells. I continually get a
stack dump when the code enters XtMainLoop. The code looks something like this...
XtToolkitInitialize();
ApplicationContext = XtCreateApplicationContext();
syncdpy = XtOpenDisplay(ApplicationContext,NULL,"ROOT","XXX_UI",NULL,0,&argc,&argv);
root_widget = XtAppCreateShell("Primary_Shell","xxxShell",applicationShellWidgetClass,syncdpy,0,
toplevel_widget = XtCreatePopupShell("SHELL1",topLevelShellWidgetClass,root_widget,0,0);
etc. etc...
XtRealizeWidget(toplevel_widget);
XtMainLoop();
The error reported is...
X Toolkit Error: Error in XMultiplexInput
%DWT-F-DWTABORT, xtoolkit fatal error
%TRACE-F-TRACEBACK, symbolic stack dump follows
module name routine name line rel PC abs PC
etc. etc...
XXX_MAIN main 19198 0000019C 0000308D
I was hoping that for each new shell I could just keep calling
XtCreatePopupShell with root_widget as the parent. If someone could post
an example starting with toolkit initialization through the realizing of
a new shell it would be helpfull.
Using the code above, if I swap XtAppMainLoop for XtMainLoop, I'll get an access
violation and stack dump when I enter MainLoop with no mention of
XMultiplexInput. What is the difference between XtMainLoop and XtAppMainLoop?
T.R | Title | User | Personal Name | Date | Lines |
---|
739.1 | | CALL::SWEENEY | Patrick Sweeney | Mon May 08 1989 21:46 | 6 |
| If you use XtOpenDisplay and XtAppCreateShell, you must use
XtAppMainLoop and not XtMainLoop.
XtAppMainLoop takes an application context as an argument. If you omit
it you'd get an access violation.
|
739.2 | thanks | ASD::ROSSI | | Tue May 09 1989 00:38 | 2 |
| Thanks, I'll try it.
|