Tom HawtinThomas Hawtin's WeblogDetecting invokeAndWait abuse- January 20, 2006 An apparently lesser known fact about EventQueue.invokeAndWait is that it can cause deadlocks. I suppose the reasons are a little subtle, but the result is not. Your desktop might not be going to Pluto, but there's no need to be all Mickey Mouse about it. Just the other day JEdit hung on me. I took jstack to it, but there were no deadlocks detected. There was, however, a use of invokeAndWait. Sure enough the EDT was waiting on monitor locked by the thread calling invokeAndWait. See the bug...http://www.jroller.com/tackline/entry/detecting_invokeandwait_abuse |