Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!kahlers From: kahlers@ux1.cso.uiuc.edu Newsgroups: comp.windows.x Subject: Problem with Translation Management Message-ID: <22700010@ux1.cso.uiuc.edu> Date: 16 Aug 90 20:57:00 GMT Lines: 38 Nf-ID: #N:ux1.cso.uiuc.edu:22700010:000:1743 Nf-From: ux1.cso.uiuc.edu!kahlers Aug 16 15:57:00 1990 Problems with Translation Management under the Xt Intrinsics... Background : I create a widget with some default translations under the Motif toolkit and need to repeatedly change the translations on the widget during its life. The translations that I need are created using the XtParseTranslations(""), and stored in 'static' locations in subroutines all over the place. Now within the subroutine I use XtUninstallTranslations(w) ---- (1) followed by XtOverrideTranslations(w) ---- (2) install a new set of translations on the widget. The current source is based on an Apollo 4500 running SR10.2 with Motif V1.0. Problem : The creation of the translation table from the corresponding "string" seems to work very well (at least the program does not crash !#@%%!!). But for some reason, quite sporadically, when I try to uninstall the translations ( using (1) ) and override them using (2), the program crashes. The behaviour is not very consistant either... Anybody seen something like this before...or any ideas. Thanx guys... =============================================================================\n\ Kem Ahlers kahlers.ux1.cso.uiuc.edu (Internet) \n\ Caterpillar, Inc. u36009@ncsagate (Bitnet) \n\ Peoria, IL USA "