<div>Nothing in the liveCode logs say &quot;flush&quot; either.</div><div><br></div>I also have the logs generated by LiveCode. Interesting the time of the crash does not match. The last line in those logs when things are working looks like this:
<div><br></div><div><div>VDatabase_SqlSelect...</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>PARAM: dbRef = &quot;18056848&quot;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>PARAM: inStrQuery = &quot;select d_cargo_linenumber, d_cargo_pieceCount, d_cargo_pkgtype, d_cargo_description, d_cargo_piece_rate, d_cargo_charges, d_cargo_pieceweight, d_cargo_ratetype_ref, d_cargo_defaultcargodesc_ref, recID from data_cargo where d_cargo_billoflading_ref = 23989&quot;</div>
<div>return res = 602889520</div><div><br></div><div>VCursor_RecordCount...</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>PARAM: cursorRef = &quot;602889520&quot;</div><div>return res = 1</div><div>
<br></div><div>VCursor_GetRecords...</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>PARAM: cursorRef = &quot;602889520&quot;</div><div>return res = 0</div><div><br></div><div>VDatabase_IsOpen...</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>PARAM: dbRef = &quot;18056848&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;18056848&quot;</div>
<div>return</div><div><br></div><div>VDatabase_Destructor...</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>PARAM: dbRef = &quot;18056848&quot;</div><div>return (vuint32)0 = 0</div><div><br></div><div>
VConnection_Close...</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>PARAM: serverRef = &quot;565089968&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;565089968&quot;</div>
<div>return res = 0</div><div><br></div><div>Valentina_ShutDownClient...</div></div><div><br></div><div>When there is a crash the last line looks like this:</div><div><br></div><div><div><br></div><div>VDatabase_SqlExecute...</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>PARAM: dbRef = &quot;575261824&quot;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>PARAM: inStrCommand = &quot;insert into info_billoflading (  i_billoflading_id,i_billoflading_clientShipper_ref, i_billoflading_clientConsignee_ref, i_billoflading_kcodeLoading_ref, i_billoflading_shipperAddressLine, i_billoflading_consigneeAddressLine, i_billoflading_freightForwarderAddressLine, i_billoflading_kcodeDischarge_ref, i_billoflading_ExportDocsFurnished_fl, i_billoflading_AESremainder_fl, i_billoflading_surcharges_fl, i_billoflading_export_fl,i_billoflading_hazCargo_fl, i_billoflading_freightcollect_fl, i_billoflading_printed_fl, i_billoflading_notifyparty, i_billoflading_specialNote, i_billoflading_MarksAndNumbers, i_billoflading_totalPallets, i_billoflading_CubicFeet,i_billoflading_TotalPayable,i_billoflading_precarriage_ref, i_billoflading_number, i_billoflading_clientFreightForwarder, i_billoflading_voyagenumber_ref, i_billoflading_dockReceipt, i_billoflading_datecreated ) VALUES (&#39;24019&#39;,&#39;8327&#39;,&#39;480&#39;,&#39;4909&#39;, &#39;1&#39;,&#39;&#39;,&#39;&#39;, &#39;24815&#39;,false,false,true,true,false,false,false, &#39;Same as Consignee&#39;,&#39;&#39;,&#39;&#39;,&#39;1&#39;, &#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;075&#39;,NULL,&#39;SS102&#39;,&#39;6539&#39;,&#39;2011-01-19&#39; )&quot;</div>
<div>return res = 1</div></div><div><br></div><div>and nothing more.</div>