<!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>Caute...</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>Vie niekto&nbsp; zistit ci je dany 
widget&nbsp;uz&nbsp;destroynuty alebo nie? Ide od ApplicationShell ale s nim je 
spojeny ApplicationContext</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>Nemam napad na korektnu cinnost napada me len 
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Arial CE" size=2>XtDestroyAppContext(appcont);</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>// zaciatok zistovania ci je uz 
zruseny</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>do</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>{</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>&nbsp;&nbsp;&nbsp; *pomocna=1;</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>&nbsp;&nbsp;&nbsp; 
while((pid(fork())==-1);</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>&nbsp;&nbsp;&nbsp; if(pid==0)</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>&nbsp;&nbsp;&nbsp; {</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
mx=XtCreateManagedWidget(...,hlavne, );</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
UnmageChild(mx);</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
Destroywidget(mx);</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
*pomocna=0;</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
exit(0);</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>&nbsp;&nbsp;&nbsp; }</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>&nbsp;&nbsp;&nbsp; sleep(2);</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>}while(*pomocna==0);</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>/* uz je zruseny</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>hlavne=XtAppInitalize(appcont);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Arial CE" size=2>Co nie je velmi korekne, aj ked pomocna je 
pointer do shared memory</FONT>&nbsp;<FONT face="Arial CE" 
size=2>...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Arial CE" size=2>&nbsp; Co vy na to...</FONT></DIV>
<DIV><FONT face="Arial CE" size=2>Moze to byt takto pouzite a nebude to velmi 
iritujuce... Alebo poznate lepsie riesenie... Bohuzial bez XtDestroyAppContext 
sa aplikacia nechova tak ako ma, no s nim pada pri 37.-500. priebehu 
kodom...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Arial CE" size=2>Diki</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Arial CE" size=2>Peto</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>