From: Erik V. <eri...@xs...> - 2012-03-01 20:52:28
|
Thanks, Frederick. I'm not sure if this feature is really useful (no feedback either way), but I have fixed it anyway. Your change works fine (after declaring selectedFile as final). Erik. > -----Original Message----- > From: Frederick Weld [mailto:fre...@go...] > Sent: Tuesday, February 28, 2012 7:07 AM > To: Development list for Rails: an 18xx game > Subject: Re: [Rails-devel] Rails configuration profiles > > Erik: > > The crash seems to be related to the new SplashWindow: > > That's correct. For the load recent, I've overlooked to put the call to > loadAndStartGame into a separate (non-EDT) thread. If you don't want to > remove this functionality, you would just need to replace: > > 328 if (selectedFile != null) { > 329 loadAndStartGame(selectedFile.getPath(), > selectedFile.getParent()); > 330 } else { // cancel pressed > 331 return; > 332 } > > with > > 328 if (selectedFile != null) { > 329 new Thread() { > public void run() { > > loadAndStartGame(selectedFile.getPath(), selectedFile.getParent()); > } > }.start(); > 330 } else { // cancel pressed > 331 return; > 332 } > > -- Frederick > > ---------------------------------------------------------------------------- -- > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers is > just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro > Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |