|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Problems with E + SWT on Mac OS XI'm trying to get E used a bit more widely here, but our Mac user
(10.6.1, Snow Leopard, Java 1.6, 32-bit x86) gets this error (many hundreds of lines): 2009-10-20 16:30:24.779 java[3000:8a03] *** __NSAutoreleaseNoPool(): Object 0x12047a0 of class NSCFString autoreleased with no pool in place - just leaking 2009-10-20 16:30:24.783 java[3000:8a03] *** __NSAutoreleaseNoPool(): Object 0x120af20 of class NSCFNumber autoreleased with no pool in place - just leaking 2009-10-20 16:30:24.783 java[3000:8a03] *** __NSAutoreleaseNoPool(): Object 0x10cdb0 of class NSCFString autoreleased with no pool in place - just leaking 2009-10-20 16:30:24.794 java[3000:8a03] *** __NSAutoreleaseNoPool(): Object 0xa0163238 of class NSCFString autoreleased with no pool in place - just leaking This happens when running any SWT program, even one that just does: println("hello") For programs that are supposed to open a window, "SWT" appears in the bar at the top of the screen but no window appears. We also tried using SWT manually, like this: def SWT := <unsafe:org.eclipse.swt.makeSWT> def makeDisplay := <unsafe:org.eclipse.swt.widgets.makeDisplay> def makeShell := <unsafe:org.eclipse.swt.widgets.makeShell> def makeText := <unsafe:org.eclipse.swt.widgets.makeText> def display := makeDisplay() def shell := makeShell(display) def helloWorldTest := makeText(shell, SWT.getNONE()) helloWorldTest.setText("Hello World SWT") helloWorldTest.pack() shell.pack() shell.open() while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep() } } display.dispose() This opens the window, but you get a spinning busy cursor if you move the mouse over it and the errors still appear. Running the equivalent Java program from Eclipse works fine. Does this work for other people? Thanks, -- Dr Thomas Leonard IT Innovation Centre 2 Venture Road Southampton Hampshire SO16 7NP Tel: +44 0 23 8076 0834 Fax: +44 0 23 8076 0833 mailto:tal@... http://www.it-innovation.soton.ac.uk _______________________________________________ e-lang mailing list e-lang@... http://www.eros-os.org/mailman/listinfo/e-lang |
|
|
Re: Problems with E + SWT on Mac OS X [ solved ]On Tue, 2009-10-20 at 16:44 +0100, Thomas Leonard wrote:
> I'm trying to get E used a bit more widely here, but our Mac user > (10.6.1, Snow Leopard, Java 1.6, 32-bit x86) gets this error (many > hundreds of lines): > > 2009-10-20 16:30:24.779 java[3000:8a03] *** __NSAutoreleaseNoPool(): > Object 0x12047a0 of class NSCFString autoreleased with no pool in > place - just leaking OK, it seems that we've found a combination that works: 1. Use the 32 bit version of Java (can be set using the "Java Preferences" utility). 2. Download the correct version of SWT: "Mac OSX (Mac/Carbon)". If you are getting lot of "just leaking" messages, you downloaded the wrong one. We used this version: http://download.eclipse.org/eclipse/downloads/drops/R-3.5.1-200909170800/index.php#SWT -- Dr Thomas Leonard IT Innovation Centre 2 Venture Road Southampton Hampshire SO16 7NP Tel: +44 0 23 8076 0834 Fax: +44 0 23 8076 0833 mailto:tal@... http://www.it-innovation.soton.ac.uk _______________________________________________ e-lang mailing list e-lang@... http://www.eros-os.org/mailman/listinfo/e-lang |
|
|
Re: Problems with E + SWT on Mac OS X [ solved ]On Oct 21, 2009, at 4:33, Thomas Leonard wrote: > On Tue, 2009-10-20 at 16:44 +0100, Thomas Leonard wrote: >> I'm trying to get E used a bit more widely here, but our Mac user >> (10.6.1, Snow Leopard, Java 1.6, 32-bit x86) gets this error (many >> hundreds of lines): >> >> 2009-10-20 16:30:24.779 java[3000:8a03] *** __NSAutoreleaseNoPool(): >> Object 0x12047a0 of class NSCFString autoreleased with no pool in >> place - just leaking > > OK, it seems that we've found a combination that works: > > 1. Use the 32 bit version of Java (can be set using the "Java > Preferences" utility). > > 2. Download the correct version of SWT: "Mac OSX (Mac/Carbon)". If you > are getting lot of "just leaking" messages, you downloaded the wrong > one. We used this version: > > http://download.eclipse.org/eclipse/downloads/drops/R-3.5.1-200909170800/index.php#SWT I've posted your information on the wiki along with writing a short comment on SWT's role in E: http://wiki.erights.org/wiki/SWT Thanks for working on the problem. (I'm not using Snow Leopard so I have no personal experience with it.) -- Kevin Reid <http://switchb.org/kpreid/> _______________________________________________ e-lang mailing list e-lang@... http://www.eros-os.org/mailman/listinfo/e-lang |
| Free embeddable forum powered by Nabble | Forum Help |