Path: utzoo!attcan!uunet!husc6!bloom-beacon!TUB.BITNET!net From: net@TUB.BITNET (Oliver Laumann) Newsgroups: comp.windows.x Subject: Re: XtMainLoop -vs- XtAppMainLoop Message-ID: <8812191042.AA16226@tub.UUCP> Date: 19 Dec 88 10:42:29 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 23 > An application context holds all the state necessary to process one > "logical application". > > To start an application, you call XtToolkitInitialize to initialize the > toolkit, XtCreateApplicationContext to create an application context, and > XtAppCreateShell to create an application shell. However, as I have pointed out earlier, in X Version 11 Release 3 this only works if you are not using widgets that register resource type converters (such as, for instance, the Athena `clock' widget). The reason for this is that the converters are always added to the `default application context'; not to the application context that you have created by XtCreateApplicationContext. This seems also to be true for timeouts (see Load.c). Until this bug is fixed, you can replace the call to XtCreateApplicationContext by a call to _XtDefaultAppContext in your application (provided, of course, that you do not want to use more that one application context). Regards, -- Oliver Laumann net@TUB.BITNET net@tub.UUCP