Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Wiggly Mouse Problem(Wiggly Mouse Problem)
Wiggly Mouse Problem [message #515346] Thu, 18 February 2010 14:35 Go to next message
Eclipse UserFriend
From a worker thread (jobs api) I periodically update a progress bar using Display.syncExec(..) . Sometimes the Display-Thread just hangs and does not check the queue. As the caller-thread of syncExec(the worker thread) is waiting to be notified (lock.wait()...) the worker hangs, too.
As soon as I hit a key or move the mouse the display awakes, runs the runnable and frees the mutex so that the worker-thread can go on.

Anybody an idea how to prevent the display-hang? Have you experienced this, too?

Some background info
operating system: windows xp
swt version 3.6.0

[Updated on: Thu, 18 February 2010 14:59] by Moderator

Report message to a moderator

Re: Wiggly Mouse Problem [message #516336 is a reply to message #515346] Tue, 23 February 2010 11:04 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
I hadn't realized that "wiggly mouse problem" had entered the common lexicon
;-). I now see that it's in Steve's SWT book. Does calling display.wake()
from the worker thread when syncExec()'ing help your case? If not, you
could probably just switch to use asyncExec() instead since updating a
progress bar is uni-directional in nature.

Grant


"Heiko Barth" <heiko.barth@compeople.de> wrote in message
news:hljj72$pdl$1@build.eclipse.org...
> From a worker thread (jobs api) I periodically update a progress bar using
Display.syncExec(..) . Sometimes the Display-Thread just hangs and does not
check the queue. As the caller-thread of syncExec(the worker thread) is
waiting to be notified (lock.wait()...) the worker hangs, too.
> As soon as I hit a key or move the mouse the display awakes, runs the
runnable and frees the mutex so that the worker-thread can go on.
>
> Anybody an idea how to prevent the display-hang? Have you experienced
this, too?
Previous Topic:SWT_AWT bridge: embedded JFrame detached from SWT view under linux
Next Topic:How to update the width of a label when its value change
Goto Forum:
  


Current Time: Mon Dec 09 10:29:51 GMT 2024

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

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

Back to the top