Warnig fatal error: _XGetDisplay cannot be use prior ....

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Warnig fatal error: _XGetDisplay cannot be use prior ....

Submitted by fotoba10 on Fri, 09/06/2002 - 13:08. Developers
Dear Motif experts,

I am to reprogram parts of my Xaw (Athena Widget Set) Applcation to the OpenMotif, because of keyborad control of dialog boxes needed...

I am to use XmCreateMessageDialog to create InputBox as seen in xumledit program...

Compilation have no problem, but when running
dialog=XmCreateMessageDialog(mainAppWidget,"Input of data",DialogModal,XtNumber(DialogModal));

it shows
"
Warnig fatal error _XGetDisplay cannot be use prior to VendorS.Initialize return NULL
"

and application "Crahes" with
"
Segmentation fault
"

but no core made...

I had similar problem with latest LessTif so I was installed
OpenMotif 2.1.30 with 5 official patches..

In LessTif program "crashes" on XtManageChild(dialog) with

"
X Error of failed request BadValue (integer parameter out of range for operation)
Major opcode of failed request 12 (X_ConfigureWindow)
Value in failed request 0x0
Serial number of failed request 547
Current serial number in output stream 548
"

error message

But OpenMotif demo programs works well,now, so it seems my fault..

Detalis about Application line listed

mainAppWidget
is return of XtAppInitialize.. and it is functionalbe for Athena Widgets...

static Arg DialogModal[]={{XmNautoUnmage,FALSE},{XmNdilogStyle, XmDIALOG_APPLICATION_MODAL}}
declaration made before call of XmCreateMessageDialog....

There is no app_default values file included...

Can you help me, please with solving this problem,please?

Thank you for any help...

Yours faithfully

Peter Fodrek, X-Window programming rookie... (C programing for over 11 years for DOS and 6 years for UNIX also with use of curses.h), not very familiar with Object Oriented Programming...

P.S.
Function to display dialog is called from Athena widget instance`s Event handler...

ICS_support

The Xaw (Athena) widget set uses the standard Xt Vendor Shell in libXt.a. Motif uses its own Vendor Shell. You are probably linking in the wrong one.