Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » SwingUtilities.invokeAndWait() deadlock
SwingUtilities.invokeAndWait() deadlock [message #903002] Tue, 21 August 2012 11:08
Hendrik Hagedorn is currently offline Hendrik Hagedorn
Messages: 1
Registered: August 2012
Junior Member
Hey guys,

I have the following problem and maybe somebody can help me with that. I am programming a simulation which operates sequentially. It is an applet which generates a graphical window and this window has several charts in it (from JFreeChart). After every time period the charts are updated.

Now the problem is that after 12 time periods or so the program fails to update the main window and then completely breaks down. The applet does not react to anything anymore and I have to terminate everything via the windows task manager.

I have therefore debugged the program and I found that the problem is that the system fails to invoke the updating method. When I set a breakpoint here

	
SwingUtilities.invokeAndWait(new Runnable(){
						public void run(){
							mainWindow.update();
						}
					});


and here (in MainWindow)


public void update() {							
	updateCharts() ;
	}



then the second breakpoint is never reached. The system just waits forever. Does anybody have a clue why this could be the case? Remember, it works well a dozen times and then just decides not to.

Hendrik
Previous Topic:Python web project in Eclipse
Next Topic:Subversive SVN Connectors not installing.
Goto Forum:
  


Current Time: Thu Jul 24 21:48:16 EDT 2014

Powered by FUDForum. Page generated in 0.06412 seconds