Skip to main content

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 15:08
Hendrik Hagedorn is currently offline Hendrik HagedornFriend
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(){

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.

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

Current Time: Thu Jan 20 11:46:12 GMT 2022

Powered by FUDForum. Page generated in 0.03545 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top