<!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:
BadWindow (invalid Window parameter)<BR> Major opcode of failed
request: 1 (X_CreateWindow)<BR> Resource id in failed request:
0x0<BR> Serial number of failed request: 170<BR> Current
serial number in output stream: 401<BR>"<BR><BR>pocas
volania<BR>XtRealizeWidget(hlavne);<BR>initrezacia() and initplan()?<BR><BR>V
tychto funciach sa vola len XtCreateManagedWidget, XtRealizeWidget<BR>and
exitable version funkcie XtMainLoop,ktora 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> </DIV>
<DIV><FONT face="Arial CE" size=2>Na Web-e neviem najst nic a ani google
nepomohol...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial CE" size=2>S 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>
....<BR> appcontPTR=(XtAppContext *
)malloc((sizeof(appcont)));<BR> ....<BR>
hlavne=XtAppInitialize<BR>(&appcont,"HLAVNE",(XrmOptionDescRec*)NULL,ZERO,&argc,argv,(String*)NULL,atr<BR>ibuty,XtNumber(atributy));<BR><BR>
...<BR> XtRealizeWidget(hlavne);<BR>
initinicializacna()<BR> ...<BR>
....<BR> do<BR>
{<BR> while(XtAppPending(appcont)!=0)<BR> {<BR>
if(XtAppPending(appcont)!=0)<BR> {<BR>
XtAppNextEvent(appcont,&event);<BR>
XtDispatchEvent(&event);<BR>
}<BR><BR> }<BR> <A
href="file://setpriority">file://setpriority</A>(PRIO_PROCESS,getpid(),-20);<BR> <A
href="file://setpriority">file://setpriority</A>(PRIO_PROCESS,getpid(),19);<BR> <A
href="file://printf">file://printf</A>("Idem
zrusit\n");<BR><BR> {<BR><BR>
XtUnrealizeWidget(hlavne);<BR><BR> printf("XtAppPending
after<BR>unrealize:%ld\n",(long)XtAppPending(appcont));<BR><BR>
while((XtAppPending(appcont)!=0)||(XtIsRealized(hlavne)==TRUE))<BR><BR>
{<BR> if(XtAppPending(appcont)!=0)<BR>
{<BR>
XtAppNextEvent(appcont,&event);<BR>
XtDispatchEvent(&event);<BR><BR> //
usleep(200000);<BR>
}<BR><BR> }<BR><BR> XtDestroyWidget(hlavne);<BR> while((XtAppPending(appcont)!=0))<BR> {<BR>
if(XtAppPending(appcont)!=0)<BR> {<BR>
XtAppNextEvent(appcont,&event);<BR>
XtDispatchEvent(&event);<BR><BR><BR>
}<BR><BR><BR> }<BR><BR><BR><BR> XtDestroyApplicationContext(appcont);<BR><BR> ...<BR> appcontPTR=(XtAppContext
*
)realloc((void<BR>*)appcontPTR,(size_t)((padnuty+1)*sizeof(appcont)));<BR><BR>hlavne=XtAppInitialize(&(appcontPTR[padnuty]),meno,NULL,ZERO,&argc,argv,(Str<BR>ing*)NULL,atributy,XtNumber(atributy));<BR>
....<BR> // Call of full screen window which is needed in current time;
posible use<BR>of swith case in the
future<BR> if(OBRAZOVKA==1)<BR> {<BR> <A
href="file://printf">file://printf</A>("Starting
plan\n");<BR> initplan();<BR> //
return when need to swith to to another
screen<BR> }else<BR> {<BR>
if(OBRAZOVKA==2)<BR> {<BR> <A
href="file://printf">file://printf</A>("Starting rezacia\n");<BR>
initrezacia();<BR> // return when need to swith to to another
screen<BR>
}<BR> }<BR><BR><BR> appcont=appcontPTR[padnuty];<BR><BR>
}while(end==0);<BR><BR><BR>}<BR><BR></DIV></FONT></BODY></HTML>