Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT und Thread
SWT und Thread [message #443381] Fri, 24 September 2004 06:03 Go to next message
Eclipse UserFriend
Originally posted by: stev.glasow.freenet.de

Hi,
i have a Class that runs the public void run() in an extra thread.
public void run(){
while(true){
try{
Thread.slepp(60);
}
catch(Excpetion err){
break;
}
//draw some things on the swt-canvas

}

}

But the problem is, that i get a 'thread-access-excpetion' if it tries to
draw on the canvas.
What can i do? Can sombody help me please ?
Re: SWT und Thread [message #443386 is a reply to message #443381] Fri, 24 September 2004 07:37 Go to previous messageGo to next message
Elmar Bartowitsch is currently offline Elmar BartowitschFriend
Messages: 10
Registered: July 2009
Junior Member
Read FAQ 140 at www.eclipsefaq.org.

hth,
eb
Re: SWT und Thread [message #443388 is a reply to message #443386] Fri, 24 September 2004 08:08 Go to previous message
Eclipse UserFriend
Originally posted by: stev.glasow.freenet.de

Elmar Bartowitsch wrote:

> Read FAQ 140 at www.eclipsefaq.org.

> hth,
> eb

OK, Thanks
Previous Topic:S-Leak: SWT Graphics Resource Leak Debugging
Next Topic:goto next column in table typing tab
Goto Forum:
  


Current Time: Fri Apr 26 19:57:36 GMT 2024

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

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

Back to the top