Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!haven.umd.edu!cs.wvu.wvnet.edu!cerc.wvu.wvnet.edu!cathedral!coop From: coop@cathedral.cerc.wvu.wvnet.edu (Cooperate) Newsgroups: comp.windows.x Subject: X Dec problem Keywords: x dec Message-ID: <1778@babcock.cerc.wvu.wvnet.edu> Date: 20 May 91 14:51:25 GMT Sender: news@cerc.wvu.wvnet.edu Lines: 54 Someone please help: I am running into some problem on DEC-5000 with one x aapplication which runs o.k. on sun4 and sgi. The problem looks like happening in the routine make_icon which is used to set up help and quit command icon. In doing this, it uses some quit.bit and help.bit file pregiven. The part of source code giving problem is as following: Widget make_icon(icon, width, height, xpos, horiz, ypos,vert,parent,toplevel) char *icon; int width, height, xpos,ypos; Widget horiz; Widget vert, parent, toplevel; { Arg arg[10]; Widget w; int n=0; XtSetArg (arg[n], XtNvertDistance, ypos); n++; XtSetArg (arg[n], XtNhorizDistance, xpos); n++; if (horiz != NULL) XtSetArg (arg[n], XtNfromHoriz, horiz); n++; if (vert != NULL) XtSetArg (arg[n], XtNfromVert, vert); n++; XtSetArg (arg[n], XtNhighlightThickness, 1); n++; fprintf(stderr,"so far, so good.\n"); XtSetArg (arg[n], XtNbitmap, XCreateBitmapFromData(XtDisplay(toplevel), XtScreen(toplevel)->root, icon, width, height)); n++; fprintf(stderr,"bitmap creation trouble.\n"); w = XtCreateManagedWidget("Icon", commandWidgetClass, parent, arg,n); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ fprintf(stderr,"return no trouble.\n"); return( w ); } The program crushes at the line which is underlined, and the debugging message is: Segmentation fault: [XrmStringToQuark:369, 0x4434cf0] source not available. It will really be apprepriated if someone out there had dealt with this sort of problem before and is willing to help. The email address to send help is: zhaod@cerc.wvu.wvnet.edu Thanks a lot!!!