Hi again Ruslan:
<div><br></div><div>I&#39;m curious about what I&#39;m doing wrong when closing my database. The vServer logs show:</div><div><br></div><div><div> 16:38:36.529272 (TID 2695787840): Server started</div><div> 16:38:36.529356 (TID 2695787840): Non-secure port: 15432</div>
<div> 16:38:36.529390 (TID 2695787840): SSL port: 15434</div><div> 16:38:36.529420 (TID 2695787840): SNMP port: 15161</div><div> 16:38:36.529478 (TID 2695787840): Scheduler started</div><div> 16:38:37.167307 (TID 2957578240): Bonjour service registered as silver._valentina-ssl._tcp.local.</div>
<div> 16:38:38.518294 (TID 2957045760): Bonjour service registered as silver (2)._valentina._tcp.local.</div><div> 16:42:04.647647 (TID 2955448320): (UID 15) ERROR 0x71000: line 1:188: unexpected end of file </div><div> 16:42:18.361433 (TID 2955980800): (UID 15) Client has been suddenly disconnected </div>
</div><div><br></div><div>While the log generated from liveCode shows:</div><div><br></div><div><div>VDatabase_IsOpen...</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>PARAM: dbRef = &quot;566004640&quot;</div>
<div>return res = 1</div><div><br></div><div>VDatabase_Close...</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>PARAM: dbRef = &quot;566004640&quot;</div><div>return</div><div><br></div><div>VConnection_Close...</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>PARAM: serverRef = &quot;566004640&quot;</div><div>return</div><div><br></div><div>VServer_Destructor...</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>PARAM: serverRef = &quot;566004640&quot;</div>
<div>return res = 0</div></div><div><br></div><div>In the  &quot; unexpected end of file &quot; error and the  &quot; Client has been suddenly disconnected &quot; caused by something I&#39;m doing wrong when shutting down my connection in Live Code?</div>
<div><br></div><div>I do this:</div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Lucida Grande&#39;"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Lucida Grande&#39;">   <span style="color: #8e920e"><b>get</b></span> VDatabase_Close( gDatabase )</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Lucida Grande&#39;">   <span style="color: #8e920e"><b>get</b></span> VConnection_Close( gDatabase )</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Lucida Grande&#39;">   <span style="color: #8e920e"><b>get</b></span> VServer_Destructor( gDatabase )</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Lucida Grande&#39;; color: #019103"><span style="color: #000000">   </span><b>-- this crashes IDE so I don&#39;t do it</b></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Lucida Grande&#39;; color: #019103"><span style="color: #000000">    </span><b>--get Valentina_ShutDownClient()</b></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Lucida Grande&#39;"> </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Lucida Grande&#39;; min-height: 15.0px"> </p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Lucida Grande&#39;; min-height: 15.0px">Thanks,</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Lucida Grande&#39;; min-height: 15.0px">
<br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Lucida Grande&#39;; min-height: 15.0px">Bill</p></div>