View Single Post
  #37  
Old 04-23-2012, 06:26 PM
mazex's Avatar
mazex mazex is offline
Approved Member
 
Join Date: Oct 2007
Location: Sweden
Posts: 1,342
Default

Quote:
Originally Posted by Madfish View Post
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
__________________
i7 2600k @ 4.5 | GTX580 1.5GB (latest drivers) | P8Z77-V Pro MB | 8GB DDR3 1600 Mhz | SSD (OS) + Raptor 150 (Games) + 1TB WD (Extra) | X-Fi Fatality Pro (PCI) | Windows 7 x64 | TrackIR 4 | G940 Hotas

Last edited by mazex; 04-23-2012 at 06:29 PM.
Reply With Quote