Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Is SWT Carbon UI supported in Leopard (OS x 10.5)?

Not sure why it works on other platforms and not OSX, but the
exception you posted looks like you tried to update the GUI from
outside the SWT event loop.  Just a guess.

On Thu, Mar 27, 2008 at 5:41 PM, Mary Nicknish <mnicknish@xxxxxxxxx> wrote:
> Thank you so much for clearing that up...I posted this same question on the
> Apple java-dev site and no one replied.
>
> Unfortunately, I am using Java build 1.5.0_13-b05-237 and running my app
> that works perfectly on 10.4, Windows XP and Vista, and on most linux
> installations.
>
> Below is the stack trace...any ideas?
>
> Mary
>
>
> Exception in thread "Thread-7" org.eclipse.swt.SWTException: Failed to
> execute runnable (org.eclipse.swt.SWTException: Invalid thread access)
>  at org.eclipse.swt.SWT.error(Unknown Source)
>  at org.eclipse.swt.SWT.error(Unknown Source)
>  at org.eclipse.swt.widgets.Synchronizer.syncExec(Unknown Source)
>  at org.eclipse.swt.widgets.Display.syncExec(Unknown Source)
>  at
> loq.agent.ui.MessageSlideShell$SlideShell.run(MessageSlideShell.java:830)
>  at loq.agent.ui.MessageSlideShell$9.run(MessageSlideShell.java:642)
>  at java.lang.Thread.run(Thread.java:613)
> Caused by: org.eclipse.swt.SWTException: Invalid thread access
>  at org.eclipse.swt.SWT.error(Unknown Source)
>  at org.eclipse.swt.SWT.error(Unknown Source)
>  at org.eclipse.swt.SWT.error(Unknown Source)
>  at org.eclipse.swt.widgets.Widget.error(Unknown Source)
>  at org.eclipse.swt.widgets.Widget.checkWidget(Unknown Source)
>  at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
>  at
> loq.agent.ui.MessageSlideShell$SlideShell$3.run(MessageSlideShell.java:871)
>  at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
>  at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
>  at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
>  at org.eclipse.swt.widgets.Display.observerProc(Unknown Source)
>
>
>
>
>
> On Thu, Mar 27, 2008 at 3:22 PM, Steve Northover
> <Steve_Northover@xxxxxxxxxx> wrote:
>
> >
> > Yes, SWT carbon is supported on OS X 10.5. If you run one of the already
> available 32-bit JDK's (1.5, 1.4.x etc), it will wokr. The crash you are
> seeing on 10.5 is probably a bug in your code (or ours).
> >
> > The confusion comes because Apple is no longer supporting 64-bit carbon.
> This wouldn't be a big deal for us right away because we can still call
> 32-bit carbon (32-bit JVM calls 32-bit carbon).  The problem happens because
> the (yet to be officially released JDK 1.6) is rumoured to be 64-bit only.
> This won't work (64-bit JVM cannot call 32-bit carbon).
> >
> > Feel free to complain to Apple about the situation.
> >
> >
> >
> >
> > "Mary Nicknish" <mnicknish@xxxxxxxxx>
> > Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
> >
> > 03/27/2008 05:58 PM
> >
> > Please respond to
> > "Eclipse Platform SWT component developers list."
> <platform-swt-dev@xxxxxxxxxxx>
> >
> >
> > To platform-swt-dev@xxxxxxxxxxx
> >
> > cc
> >
> > Subject [platform-swt-dev] Is SWT Carbon UI supported in Leopard (OS x
> 10.5)?
> >
> >
> >
> >
> >
> >
> >
> >
> > I have seen this question posted several places (even on this site) and no
> one has directly answered the question.
> >
> > I have a Java application that uses Carbon to create the menus on the Mac.
> It works great in 10.4, but gets a memory overwrite exception in 10.5
> >
> > Does Carbon work on a 64 bit system? If not, what should I replace it
> with???
> >
> > Thanks
> > Mary_______________________________________________
> > platform-swt-dev mailing list
> > platform-swt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> >
> >
> > _______________________________________________
> > platform-swt-dev mailing list
> > platform-swt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> >
> >
>
>
> _______________________________________________
>  platform-swt-dev mailing list
>  platform-swt-dev@xxxxxxxxxxx
>  https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
>



-- 
Clayton Hicklin
chicklin@xxxxxxxxx


Back to the top