Hi

I get a runtime error when I try to execute the following;
(I have snipped the non-essential part of the code for brevity,
but the error occures already at line 32:

32 form = XmCreateForm(toplevel, "form", args, n);


the exact error message is:

signal SEGV (no mapping at the fault address) in _XmAddHashEntry at
0xff177458
0xff177458: _XmAddHashEntry+0x0004: ld [%i0 + 0xc], %l0
Current function is main


Thanks

-----------------
1 #include
2 #include
3 #include
4 #include
5
6
7
8
9 static XtAppContext app_context;
10 static String fallback_resources[] = {
11 "*frame*shadowType: SHADOW_IN",
12 NULL
13 };
14
15 void
16 main(int argc, char *argv[])
17 {
18 Arg args[20];
19 int n;
20 Widget toplevel, form, frame;
21
22
23 toplevel = XtAppInitialize(&app_context, "4DgiftsGLw",
24 (XrmOptionDescList) NULL,
25 (Cardinal)0,
26 (int *)&argc,
27 (String*)argv,
28 fallback_resources,
29 (ArgList)NULL, 0);
30
31 n = 0;
32 form = XmCreateForm(toplevel, "form", args, n);
33 XtManageChild(form);
34
35 n = 0;
36 XtSetArg(args[n], XtNx, 30); n++;
37 XtSetArg(args[n], XtNy, 30); n++;
38 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_FORM); n++;
39 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); n++;
40 XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM); n++;
41 XtSetArg(args[n], XmNrightAttachment, XmATTACH_FORM); n++;
42 XtSetArg(args[n], XmNleftOffset, 5); n++;
43 XtSetArg(args[n], XmNtopOffset, 5); n++;
44 XtSetArg(args[n], XmNbottomOffset, 5); n++;
45 XtSetArg(args[n], XmNrightOffset, 5); n++;
46 frame = XmCreateFrame (form, "frame", args, n);
47 XtManageChild (frame);
48
49
50 XtRealizeWidget(toplevel);
51
52 XtAppMainLoop(app_context);
53
54 }