<p>17.04.2015, 18:41, "Michael Van Canneyt" <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>>:</p><blockquote>šWe are aware of this problem, and we are working on a solution to be able to reconnect (so, point 4 in your list (actually, the second 3) :))<br /><br />šSee for example: <a href="http://bugs.freepascal.org/view.php?id=26505">http://bugs.freepascal.org/view.php?id=26505</a><br /><br />šThere is a beginning of a patch in TCustomConnection<br />ššššprocedure Close(ForceClose: Boolean=False);<br />šif you set Force to True then the connection will be closed and errors will be ignored.<br /><br />šMichael.<br />š,<br /><br />š_______________________________________________<br />šfpc-devel maillist š- š<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br />š<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a></blockquote><div>š</div><div>thanks for answer. it's really nice to report known bugs ;)</div><div>but I tried forced connection closedown, and it doesn't work. at least for me. or it's I'm just sad sack?</div><div>š</div><div>for example, I have this code on my (re)connect button:</div><div><a href="http://pastebin.com/9PPyaby9">http://pastebin.com/9PPyaby9</a></div><div>and after connection interrupt it throws "connection lost" exception on IBConnection<span>.</span><span>Close</span><span>(</span> <span>True</span> <span>), and doesn't set Connected to False</span><span></span></div><div>š</div><div><span>also one small question. will it be possibly to determine whether connection was closed by user or interrupted? and what about events calling on interrupts?</span></div><div>š</div><div><span>-----</span></div><div><span>Dmitry D. Chernov</span></div><div><span>Russia, Vladivostok</span></div>