<!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><FONT face="Arial CE" size=2>Vazeny experti!<BR><BR>Viem mi niekto povedat, 
co znamena hlaska</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>"<BR><BR>X Error of failed request:&nbsp; 
BadWindow (invalid Window parameter)<BR>&nbsp; Major opcode of failed 
request:&nbsp; 1 (X_CreateWindow)<BR>&nbsp; Resource id in failed request:&nbsp; 
0x0<BR>&nbsp; Serial number of failed request:&nbsp; 170<BR>&nbsp; Current 
serial number in output stream:&nbsp; 401<BR>"<BR><BR>pocas 
volania<BR>XtRealizeWidget(hlavne);<BR>initrezacia() and initplan()?<BR><BR>V 
tychto funciach sa vola len&nbsp;XtCreateManagedWidget, XtRealizeWidget<BR>and 
exitable version&nbsp;funkcie XtMainLoop,ktora&nbsp;je vidiet aj v kode 
kode....<BR>Prva obrazovka funguje v poriadku ale druha uz zlyhava a dabva tuto 
hlasku...</FONT></DIV>
<DIV><FONT face="Arial CE" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial CE" size=2>Na Web-e neviem najst nic a ani google 
nepomohol...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Arial CE" size=2>S&nbsp;vdakou za 
odpoved<BR><BR><BR>CODE<BR><BR>Arg 
atributy<BR>={{"label",(XtArgVal)"1"},{XtNbaseWidth,(XtArgVal)1024},{XtNbaseHeight,(XtAr<BR>gVal)1024});<BR>XtAppContext 
appcont;<BR>XtAppContext 
*appcontPTR;<BR><BR><BR>main()<BR>{<BR><BR>&nbsp;&nbsp;&nbsp; 
....<BR>&nbsp;&nbsp;&nbsp; appcontPTR=(XtAppContext * 
)malloc((sizeof(appcont)));<BR>&nbsp;&nbsp;&nbsp; ....<BR>&nbsp;&nbsp;&nbsp; 
hlavne=XtAppInitialize<BR>(&amp;appcont,"HLAVNE",(XrmOptionDescRec*)NULL,ZERO,&amp;argc,argv,(String*)NULL,atr<BR>ibuty,XtNumber(atributy));<BR><BR>&nbsp;&nbsp;&nbsp; 
...<BR>&nbsp;&nbsp;&nbsp; XtRealizeWidget(hlavne);<BR>&nbsp;&nbsp;&nbsp; 
initinicializacna()<BR>&nbsp;&nbsp; ...<BR>&nbsp;&nbsp; 
....<BR>&nbsp;&nbsp;&nbsp; do<BR>&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;while(XtAppPending(appcont)!=0)<BR>&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
if(XtAppPending(appcont)!=0)<BR>&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp; 
XtAppNextEvent(appcont,&amp;event);<BR>&nbsp; 
XtDispatchEvent(&amp;event);<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR><BR>&nbsp;}<BR>&nbsp;<A 
href="file://setpriority">file://setpriority</A>(PRIO_PROCESS,getpid(),-20);<BR>&nbsp;<A 
href="file://setpriority">file://setpriority</A>(PRIO_PROCESS,getpid(),19);<BR>&nbsp;<A 
href="file://printf">file://printf</A>("Idem 
zrusit\n");<BR><BR>&nbsp;{<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; 
XtUnrealizeWidget(hlavne);<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; printf("XtAppPending 
after<BR>unrealize:%ld\n",(long)XtAppPending(appcont));<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; 
while((XtAppPending(appcont)!=0)||(XtIsRealized(hlavne)==TRUE))<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp; if(XtAppPending(appcont)!=0)<BR>&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
XtAppNextEvent(appcont,&amp;event);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
XtDispatchEvent(&amp;event);<BR><BR>&nbsp; //&nbsp;&nbsp;&nbsp; 
usleep(200000);<BR>&nbsp; 
}<BR><BR>&nbsp;}<BR><BR>&nbsp;XtDestroyWidget(hlavne);<BR>&nbsp;while((XtAppPending(appcont)!=0))<BR>&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
if(XtAppPending(appcont)!=0)<BR>&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp; 
XtAppNextEvent(appcont,&amp;event);<BR>&nbsp; 
XtDispatchEvent(&amp;event);<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR><BR><BR>&nbsp;}<BR><BR><BR><BR>&nbsp;XtDestroyApplicationContext(appcont);<BR><BR>&nbsp;...<BR>&nbsp;appcontPTR=(XtAppContext 

)realloc((void<BR>*)appcontPTR,(size_t)((padnuty+1)*sizeof(appcont)));<BR><BR>hlavne=XtAppInitialize(&amp;(appcontPTR[padnuty]),meno,NULL,ZERO,&amp;argc,argv,(Str<BR>ing*)NULL,atributy,XtNumber(atributy));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
....<BR>&nbsp;// Call of full screen window which is needed in current time; 
posible use<BR>of swith case in the 
future<BR>&nbsp;if(OBRAZOVKA==1)<BR>&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp; <A 
href="file://printf">file://printf</A>("Starting 
plan\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp; initplan();<BR>&nbsp;&nbsp;&nbsp;&nbsp; // 
return when need to swith to to another 
screen<BR>&nbsp;}else<BR>&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
if(OBRAZOVKA==2)<BR>&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp; <A 
href="file://printf">file://printf</A>("Starting rezacia\n");<BR>&nbsp; 
initrezacia();<BR>&nbsp; // return when need to swith to to another 
screen<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;}<BR><BR><BR>&nbsp;appcont=appcontPTR[padnuty];<BR><BR>&nbsp;&nbsp;&nbsp; 
}while(end==0);<BR><BR><BR>}<BR><BR></DIV></FONT></BODY></HTML>