Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem with SWT application under Mac OS X
Problem with SWT application under Mac OS X [message #456408] Thu, 02 June 2005 16:10 Go to next message
Tom is currently offline TomFriend
Messages: 22
Registered: July 2009
Junior Member
I try to execute my SWT application under Mac OS X and i have the following
error:

org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:2860)
at org.eclipse.swt.SWT.error(SWT.java:2783)
at org.eclipse.swt.SWT.error(SWT.java:2754)
at org.eclipse.swt.widgets.Widget.error(Widget.java:554)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:305)
at org.eclipse.swt.widgets.Control.isEnabled(Control.java:1218)
at org.eclipse.swt.widgets.Display.mouseProc(Display.java:2517)

This application is deployed with JavaWebStart and works fine under Windows
and Linux.
I pass in my JNLP file JVM argument -XstartOnFirstThread which could
resolved the problem but it's the same thing...

Could someone help me please??? i don't understand how to resolve this
problem.

Thanks, Tom.
Re: Problem with SWT application under Mac OS X [message #456441 is a reply to message #456408] Fri, 03 June 2005 16:38 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Do you create multiple Display objects in your application? Mac OS X will
only support one.

"Tom" <trainer@labeltechnologies.com> wrote in message
news:d7nb3i$l1$1@news.eclipse.org...
>I try to execute my SWT application under Mac OS X and i have the following
>error:
>
> org.eclipse.swt.SWTException: Invalid thread access
> at org.eclipse.swt.SWT.error(SWT.java:2860)
> at org.eclipse.swt.SWT.error(SWT.java:2783)
> at org.eclipse.swt.SWT.error(SWT.java:2754)
> at org.eclipse.swt.widgets.Widget.error(Widget.java:554)
> at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:305)
> at org.eclipse.swt.widgets.Control.isEnabled(Control.java:1218)
> at org.eclipse.swt.widgets.Display.mouseProc(Display.java:2517)
>
> This application is deployed with JavaWebStart and works fine under
> Windows and Linux.
> I pass in my JNLP file JVM argument -XstartOnFirstThread which could
> resolved the problem but it's the same thing...
>
> Could someone help me please??? i don't understand how to resolve this
> problem.
>
> Thanks, Tom.
>
Re: Problem with SWT application under Mac OS X [message #456635 is a reply to message #456441] Mon, 06 June 2005 08:12 Go to previous messageGo to next message
Tom is currently offline TomFriend
Messages: 22
Registered: July 2009
Junior Member
Thanks for your response Veronika,

diaplay is creating using this:

Display display = PlatformUI.createDisplay();

It's the only one display i create.
After that i call shell.getDisplay() or Display.getCurrent() for use the
display...


"Veronika Irvine" <veronika_irvine@oti.com> wrote in message
news:d7q12p$fdk$1@news.eclipse.org...
> Do you create multiple Display objects in your application? Mac OS X will
> only support one.
>
Re: Problem with SWT application under Mac OS X [message #456644 is a reply to message #456635] Mon, 06 June 2005 14:00 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
The problem seems quite odd. Do you have an example that you can post here
that shows the problem?

"Tom" <trainer@labeltechnologies.com> wrote in message
news:d810i0$ra2$1@news.eclipse.org...
> Thanks for your response Veronika,
>
> diaplay is creating using this:
>
> Display display = PlatformUI.createDisplay();
>
> It's the only one display i create.
> After that i call shell.getDisplay() or Display.getCurrent() for use the
> display...
>
>
> "Veronika Irvine" <veronika_irvine@oti.com> wrote in message
> news:d7q12p$fdk$1@news.eclipse.org...
>> Do you create multiple Display objects in your application? Mac OS X
>> will only support one.
>>
>
>
Re: Problem with SWT application under Mac OS X [message #456677 is a reply to message #456644] Mon, 06 June 2005 16:12 Go to previous messageGo to next message
Tom is currently offline TomFriend
Messages: 22
Registered: July 2009
Junior Member
My application is too big to post here and not now online but i found
another RCP application deployed with JavaWebStart which have exactly the
same problem like mine and online so you could test it if you want to see
exactly the problem (note that like mine this application works fine under
Windows - i haven't try it under Linux - ).

http://www.ggtools.net/files/grand/jnlp/grand-ui.jnlp

Thanks for your help.
Best regards.

Tom.
Re: Problem with SWT application under Mac OS X [message #456680 is a reply to message #456677] Mon, 06 June 2005 17:44 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Entered teh following bug report against Platform SWT:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=98553

"Tom" <trainer@labeltechnologies.com> wrote in message
news:d81smk$34k$1@news.eclipse.org...
> My application is too big to post here and not now online but i found
> another RCP application deployed with JavaWebStart which have exactly the
> same problem like mine and online so you could test it if you want to see
> exactly the problem (note that like mine this application works fine under
> Windows - i haven't try it under Linux - ).
>
> http://www.ggtools.net/files/grand/jnlp/grand-ui.jnlp
>
> Thanks for your help.
> Best regards.
>
> Tom.
>
>
Re: Problem with SWT application under Mac OS X [message #456696 is a reply to message #456680] Tue, 07 June 2005 08:40 Go to previous message
Tom is currently offline TomFriend
Messages: 22
Registered: July 2009
Junior Member
I find also https://bugs.eclipse.org/bugs/show_bug.cgi?id=63306 and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=67384 which seem to be on the
same problem
Previous Topic:MouseWheel Events
Next Topic:Problem with Shell.close()
Goto Forum:
  


Current Time: Sat Apr 27 01:38:39 GMT 2024

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

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

Back to the top