<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 12/9/2010 10:49 PM, william humphrey wrote:
    <blockquote
      cite="mid:AANLkTimErzO3ct=+GvQoFxa52Cs8undrBx65-qpyWYiQ@mail.gmail.com"
      type="cite">Hi again Ruslan:
      <div><br>
      </div>
      <div>I'm curious about what I'm doing wrong when closing my
        database. The vServer logs show:</div>
      <div><br>
      </div>
      <div>
        <div>&nbsp;16:38:36.529272 (TID 2695787840): Server started</div>
        <div>&nbsp;16:38:36.529356 (TID 2695787840): Non-secure port: 15432</div>
        <div>&nbsp;16:38:36.529390 (TID 2695787840): SSL port: 15434</div>
        <div>&nbsp;16:38:36.529420 (TID 2695787840): SNMP port: 15161</div>
        <div>&nbsp;16:38:36.529478 (TID 2695787840): Scheduler started</div>
        <div>&nbsp;16:38:37.167307 (TID 2957578240): Bonjour service
          registered as silver._valentina-ssl._tcp.local.</div>
        <div>&nbsp;16:38:38.518294 (TID 2957045760): Bonjour service
          registered as silver (2)._valentina._tcp.local.</div>
        <div>&nbsp;16:42:04.647647 (TID 2955448320): (UID 15) ERROR 0x71000:
          line 1:188: unexpected end of file&nbsp;</div>
        <div>&nbsp;16:42:18.361433 (TID 2955980800): (UID 15) Client has been
          suddenly disconnected&nbsp;</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 = "566004640"</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 = "566004640"</div>
        <div>return</div>
        <div><br>
        </div>
        <div>VConnection_Close...</div>
        <div><span class="Apple-tab-span" style="white-space: pre;"> </span>PARAM:
          serverRef = "566004640"</div>
        <div>return</div>
        <div><br>
        </div>
        <div>VServer_Destructor...</div>
        <div><span class="Apple-tab-span" style="white-space: pre;"> </span>PARAM:
          serverRef = "566004640"</div>
        <div>return res = 0</div>
      </div>
      <div><br>
      </div>
      <div>In the &nbsp;"&nbsp;unexpected end of file " error and the &nbsp;"&nbsp;Client
        has been suddenly disconnected " caused by something I'm doing
        wrong when shutting down my connection in Live Code?</div>
      <div><br>
      </div>
      <div>I do this:</div>
      <div>
        <p style="margin: 0px; font: 12px 'Lucida Grande';"><br>
        </p>
        <p style="margin: 0px; font: 12px 'Lucida Grande';">&nbsp;&nbsp; <span
            style="color: rgb(142, 146, 14);"><b>get</b></span>
          VDatabase_Close( gDatabase )</p>
        <p style="margin: 0px; font: 12px 'Lucida Grande';">&nbsp;&nbsp; <span
            style="color: rgb(142, 146, 14);"><b>get</b></span>
          VConnection_Close( gDatabase )</p>
        <p style="margin: 0px; font: 12px 'Lucida Grande';">&nbsp;&nbsp; <span
            style="color: rgb(142, 146, 14);"><b>get</b></span>
          VServer_Destructor( gDatabase )</p>
        <p style="margin: 0px; font: 12px 'Lucida Grande'; color: rgb(1,
          145, 3);"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp; </span><b>--
            this crashes IDE so I don't do it</b></p>
        <p style="margin: 0px; font: 12px 'Lucida Grande'; color: rgb(1,
          145, 3);"><span style="color: rgb(0, 0, 0);">&nbsp; &nbsp; </span><b>--get
            Valentina_ShutDownClient()</b></p>
        <p style="margin: 0px; font: 12px 'Lucida Grande';">&nbsp;</p>
        <p style="margin: 0px; font: 12px 'Lucida Grande'; min-height:
          15px;">&nbsp;</p>
        <p style="margin: 0px; font: 12px 'Lucida Grande'; min-height:
          15px;">Thanks,</p>
        <p style="margin: 0px; font: 12px 'Lucida Grande'; min-height:
          15px;">
          <br>
        </p>
        <p style="margin: 0px; font: 12px 'Lucida Grande'; min-height:
          15px;">Bill</p>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Valentina-beta mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Valentina-beta@lists.macserve.net">Valentina-beta@lists.macserve.net</a>
<a class="moz-txt-link-freetext" href="http://lists.macserve.net/mailman/listinfo/valentina-beta">http://lists.macserve.net/mailman/listinfo/valentina-beta</a>
</pre>
    </blockquote>
    <br>
    Yes, there is wrong argument - you pass gDatabase for everything.<br>
    Actually, Valentina should produce error in the log about wrong
    argument, but it does not for unknown reason.<br>
    I will try to reproduce it here <br>
    <pre class="moz-signature" cols="72">-- 
Best regards,
Ivan Smahin 
Senior Software Engineer
Paradigma Software, Inc
Valentina - The Ultra-Fast Database
<a class="moz-txt-link-freetext" href="http://www.valentina-db.com">http://www.valentina-db.com</a></pre>
  </body>
</html>