<div dir="ltr">Absolutely.<div><br></div><div style>I see it as two conditions on occasion. Yesterday as an example the computer slept for the day.</div><div style><br></div><div style>When it woke up, it had a visible SQL error exception window, though I cannot say for certain how long it took (though it was under 10 mins for waking to checking).</div>
<div style><br></div><div style>When this exception occurred, it was due to the TCP connection having been closed. It did not attempt to start a new one, didn't ask me for any other info.</div><div style><br></div><div style>
After acknowledging the error, I let it be for a few minutes (I'm a coffee person and I needed on). On return, there was no error, but no other prompts/actions.</div><div style><br></div><div style>Given past experience, I selected to exit from the file menu without taking any other action. The application clearly was not in a happy mood to proceed and Windows 7 did the whole "Looking for solution" dialogue due to it closing unexpectedly.</div>
<div style><br></div><div style>I'll remember to grab some screenshots next time.</div><div style><br></div><div style>I highly suspect the crash / abort at the end was when the app was attempting to perform the required SQL database updates, to mark the session over. This is suspected due to the "Another users has this open" when I started it again.</div>
<div style><br></div><div style>Typically though, I will return the machine from sleep (I do try to avoid this), or change networks (I try to avoid, but not always possible) and there will be no error. Again, experience tells me to exit the application.</div>
<div style><br></div><div style>Just clicking the close button (big windows red X in the top right) and it wont do anything. Quite literally nothing, no exit, no error. I have to end the process, or use Quid from the file menu.</div>
<div style><br></div><div style>So yes, something is not quite right.</div><div style><br></div><div style>Suggestions on what I can do to get more data on what actually is happening, and I will be more than happy to collect.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 16 April 2014 03:53, Fernando Vilas <span dir="ltr"><<a href="mailto:fvilas@iname.com" target="_blank">fvilas@iname.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Tuesday, April 15, 2014 18:57:38 Phil Richardson wrote:<br>
> So error handling seems to be something that needs a little improvement.<br>
><br>
> I use KMyMoney using MySQL. Both on windows as a client local to the<br>
> network it is on, as well as remotely over a VPN on Ubuntu (though only<br>
> very occasionally).<br>
><br>
> Windows being the primary client, I frequently have to swap between<br>
> wireless and wired networks, as well as seeing the machine sleep.<br>
><br>
> The network switch is not smooth (damn Dell for not providing a combined<br>
> network interface with shared MAC), so my IP will change during the<br>
> interface swap. Sleeping will also obviously potentially cause long periods<br>
> in which the TCP channel may close.<br>
><br>
> Overall, this leaves me with issues when I have KMyMoney open.<br>
><br>
> I may only occasionally get an exception window about the error, but near<br>
> always, I find KMyMoney still wants to try and use the closed MySQL<br>
> connection long after it is closed.<br>
><br>
> This can prompt the app to stall, not respond and otherwise act in an<br>
> unfriendly way until I can close it.<br>
><br>
> Is there not more that can be done during a SQL driver exception, such as<br>
> instantly close the application without any further attempts to use the<br>
> closed socket?<br>
<br>
</div></div>It used to crash... The stall you are seeing should not be using the closed<br>
socket. Rather, it should be detecting that the connection was closed and<br>
attempting to open a new one. If that is not the case, it needs fixing...<br>
<br>
Another option would be to percolate an error up the stack until the user is<br>
told that the connection was closed unexpectedly, and should be reinitiated<br>
manually from the menu.<br>
<br>
Thoughts?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Thanks,<br>
Fernando Vilas<br>
<a href="mailto:fvilas@iname.com">fvilas@iname.com</a><br>
</font></span><br>_______________________________________________<br>
KMyMoney mailing list<br>
<a href="mailto:KMyMoney@kde.org">KMyMoney@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kmymoney" target="_blank">https://mail.kde.org/mailman/listinfo/kmymoney</a><br>
<br></blockquote></div><br></div>