Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Resource conversion Message-ID: <8908171705.AA23978@expo.lcs.mit.edu> Date: 17 Aug 89 17:05:00 GMT References: <8908152147.AA07857@godzilla.goldhill.com> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 32 > When do the resources specified in the default > resources of a widget class get converted to their actual value. At widget creation time, before the widget's initialize routine is called. > Is the string converted to an actual cursor object (using > XCreateFontCursor just once (at class initialization time?), > or every time a widget is created, or something else. It is converted for each widget, but the converters cache this information. > The reason I ask is because I am doing a > XtDestroyApplicationContext(app_context) ; and then recreating an app_context > and new display. It seems that after I create the new display, I am getting > BadCursor errors because the old value used by XCreateFontCursor for the old > display is being reused (without calling XCreateFontCursor again for the new > display). This is a (known) bug in the toolkit. It seems that the cursors are cached on a per application basis rather than a per display basis. We are working on fixing this problem. Until we fix it here you lose, sorry. The multiple display stuff in the R3 Xt is pretty buggy, I would stay away from it until R4 if you can possible do it. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213