Quote:
Originally Posted by Madfish
I get a CTD when pressing the [X] button in the top right. What's up?!

|
He he, even though you did joke - you actually touched something that is kind of a bug (or more of an aesthetic glitch) in the current version. If user has started the background thread that polls the server and then press the "real" exit button down in the right corner without stopping the watcher it will notice that and nicely terminate the poll thread before closing the main form. BUT - If you press the x I did not handle the event there (FormClosing) so that it should check if the user has pressed the x without stopping the background thread

A good application is supposed to anticipate that the user maybe not does things as they are supposed to and I have changed the code for version 1.0.4 to include checking that event too... But I will not do a new build of it until something else appears...
This is the tough world of being a developer... Thinking of all the things users can do that they are not supposed to do. Having the "watcher" thread running when closing the form with the x will not cause any errors though and the "watcher" thread will die as it is defined as a background thread when it gets orphaned, but it's not elegant