OMG I am stupid... Yes, I remove it... And then When I return it, it works without console window...<br>Thank you all :-) You are great :-)<br><br><br>But I  have to kill timers, because it stay in memory, when I close application...<br>
<br><div class="gmail_quote">2011/4/27 John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">&gt; IF(WIN32)<br>
&gt;  SET(GUI_TYPE WIN32)<br>
&gt; ENDIF(WIN32)<br>
&gt;<br>
&gt; ADD_EXECUTABLE( WatershedSegmentation ${SRCS} ${UI_SRCS} ${RCC_SRCS})<br>
&gt;<br>
<br>
</div>Don&#39;t you have to use GUI_TYPE in ADD_EXECUTABLE or am I missing something?<br>
<font color="#888888"><br>
John<br>
</font></blockquote></div><br>