<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-2" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Vazeny kolegovia!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>
<DIV>Poprosil, by som Vas o radu:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Uz som splasil niekde info o tom, ze to moze byt chyba LessTif-u a ze si 
mam naistalovat OpenMotif... stalo sa OpenMotif 2.2 a tam to padne uz 
na&nbsp;&nbsp;&nbsp;&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>dialog=XmCreateMessageDialog(hlavne,"Vstup udajov 
:",DialogModal,XtNumber(DialogModal));</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>s&nbsp;hlaskou </DIV>
<DIV>Warning: Fatal Error _XmGetDefaultDisplay can not be used prior 
VendorS.Initialize return NULL</DIV>
<DIV>&nbsp;</DIV>
<DIV>a potom to pocopitelne padne na segmentation fault..</DIV>
<DIV>Lebo ak&nbsp;je nejaky smernik NULL vystupom funkcie volanej z XmCreate... 
tak to je nepredpokladany stav ...</DIV>
<DIV>&nbsp;</DIV>
<DIV>Musel som urcite na nieco zabudnut, ale na co?</DIV>
<DIV>Ja som asi tak zacykleny, ze nevidim svoju chybu...</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Moze ma aspon niekto nasmerovat na niekoho,kto vie nieco take 
robit,prosim?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Vdaka</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Peto</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;Pri pokuse o pridanie dialogu napisaneho pomocu LessTif-u do aplikacie 
napisanej v Athen-e mi X- &gt;server pri pokuse o 
<DIV><FONT face=Arial size=2>&gt;&nbsp;XtManageChild(dialog);</FONT></DIV>
<DIV>&gt;vypise podivne hlasenie:</DIV></DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV><FONT face=Arial size=2></FONT>&gt;&nbsp;</DIV>
<DIV>&gt;"</DIV>
<DIV><FONT face=Arial size=2>&gt;X Error of failed request:&nbsp; BadValue 
(integer parameter out of range for operation)<BR>&gt;&nbsp; Major opcode of 
failed request:&nbsp; 12 (X_ConfigureWindow)<BR>&gt;&nbsp; Value in failed 
request:&nbsp; 0x0<BR>&gt;&nbsp; Serial number of failed request:&nbsp; 
547<BR>&gt;&nbsp; Current serial number in output stream:&nbsp; 
548<BR>&gt;"</FONT></DIV>
<DIV>&gt;</DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;Nevie niekto, co je to za hlasenie? (Nedokazal 
som sa k tomu dopatrat)</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;Prebehne to pocas pridaneho kodu, pricom je 
jedno, ci je hlavne POPUP Shell, Application Shell ci &gt;Form...</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;Viem, ze este idu pridat dalsie 
Widget-y&nbsp;pomocou Athen-y, lebo dialog bol robeny cez nu, len musi &gt;byt 
ovladany pomocou klavesnice a preto to treba prerobit do 
LessTif-u..</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;static void Dialog1(String napis,int 
ktore)<BR>&gt;{</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;&nbsp;&nbsp;&nbsp; &nbsp;static Arg 
DialogModal[]={{XmNautoUnmanage, FALSE},{XmNdialogStyle, &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&gt;XmDIALOG_FULL_APPLICATION_MODAL}};</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
printf("V1\n");</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
dialog=XmCreateMessageDialog(hlavne,"Vstup udajov 
:",DialogModal,XtNumber(DialogModal));</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
printf("V2\n");</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
XtDestroyWidget(XmMessageBoxGetChild(dialog,XmDIALOG_SYMBOL_LABEL));<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
XtDestroyWidget(XmMessageBoxGetChild(dialog,XmDIALOG_MESSAGE_LABEL));<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
XtAddCallback(dialog,XmNokCallback,ok,(XtPointer)NULL);<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
XtAddCallback(dialog,XmNcancelCallback,ok,(XtPointer)NULL);<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
XtAddCallback(dialog,XmNhelpCallback,ok,(XtPointer)NULL);</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
printf("V2.1\n");</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
XtManageChild(dialog);</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
printf("V3\n");</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
XtRealizeWidget(dialog);</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
printf("V4\n");<BR>&gt;}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>