Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!ukma!tut.cis.ohio-state.edu!bloom-beacon!pcsbst.UUCP!jkh From: jkh@pcsbst.UUCP (Jordan K. Hubbard) Newsgroups: comp.windows.x Subject: confusion about "application contexts" Message-ID: <8902150327.AA00175@meepmeep.UUCP> Date: 15 Feb 89 03:54:06 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 30 Not only do I not understand what they're good for, but using routines that require them doesn't seem to work! The scenario: The toolkit is initialized with XtToolkitInitialize() A new applications context is created with XtCreateApplicationContext() Display is opened with XtOpenDisplay() The top level shell is created with XtAppCreateShell() Widgets are created under it and we walk into XtAppMainLoop(). Zilch. No window(s) are mapped, deaf and dumb. Ok, so we go back and decide to do it the R2 way with XtInitialize() and XtMainLoop(). Voila! Everything comes up! Hmmm.. What gives? Looking at the code for XtInitialize() sheds no light since it seems to do pretty much what I did by hand, with the absense of an applications context. What am I missing? Just what are applications contexts for? Should we all be using the XtApp... calls for any special reason? Will things like XtMainLoop() quietly go away, making this mandatory? Confused.. Jordan Hubbard PCS Computer Systems pyramid!pcsbst!jkh