>>>>> On Sun, 30 Apr 2000 16:02:04 -1000, domi <[EMAIL PROTECTED]> said:
Dominique> Who can help me ?
Dominique> I tried to recompile with Linux, a software which was running under
Xwindows
Dominique> and Motif 1.2 (on a HP Appollo workstation with HP-UX); no problem to
recompile
Dominique> : 0 errors, 0 warning. But at the run, I got the following error:
Dominique> segmentation fault
Dominique> After debugging, I found that it was the XtOpenDisplay() function which
produces
Dominique> the error (instead of returning NULL).
Dominique> part of the code is the following:
Dominique> ////////////////////////////////////////////
Dominique> void Init_XWin(void)
Dominique> {
Dominique> Arg args[10];
Dominique> int ac;
Dominique> XSetWindowAttributes attributs;
Dominique> char nom_exec[10];
Dominique> Widget wMenuPane;
Dominique> Widget wSousMenuPane;
Dominique> Widget wMyShell;
Dominique> char title[80];
Dominique> /*********** init. XWindow ***************/
Dominique> XtToolkitInitialize();
Dominique> AppContext = XtCreateApplicationContext();
Dominique> dpy= XtOpenDisplay( AppContext, "DISPLAY", "P_EXEC", NULL,NULL, 0, 0,
NULL );
Dominique> //////////////////////////////////////////
Dominique> // program never reach this point ! ////////
Dominique> //////////////////////////////////////////
Check the doc for XtOpenDisplay(): the argc argument should be a pointer to 0,
not the value 0.
__Martin
_____________________________________________________________________
This message has been checked for all known viruses by the
MessageLabs Virus Control Centre. For further information visit-
http://www.messagelabs.com/stats.asp