Adam, I hope you still see this. I am a bit uncertain whether BDSKAsynchronousDOServer is stopped properly. Especially if the server thread runloop is stopped, and whether -cleanup is guaranteed to be executed. I could imagine the following errors to occur:
1. send -cleanup 2. set shouldKeepRunning to 0 3. server thread runloop finishes some long calculation, no new runloop run as shouldKeepRunning == 0 Result: -cleanup is never run, because there is no runloop to pick it up 1. send -cleanup 2. serverThread executes -cleanup immediately 3. server thread starts new runloop run 4. set shouldKeepRunning to 0 Result: the runloop on the server thread never finishes, as it gets no input anymore Am I right that this could happen? As you may know I am not very well at run loops and threads. Christiaan ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Bibdesk-develop mailing list Bibdesk-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-develop