Eclipse snippet 195 in RCP editor problems

Started by JayMarvin, December 01, 2006, 00:33:03

Previous topic - Next topic

JayMarvin

Hello,

I am trying to run the torus demo from the Eclipse snippet 195 for lwjgl in an Eclipse RCP Editor window.  When the GLContent.useContext(canvas) call is made, the thread exits for some reason.

The Composite I use to make the canvas is the one you get from createPartControl during initialization of the Editor.

The lwjgl.dll seems to be loaded, although I did try to System.loadLibrary it and then a message that it is already loaded by another class loader comes up and that seems to be when the call to useContext is made.  And I don't know if this matters or not.

I don't see any other error messages, but I'd imagine I don't know where they are going due to using an RCP app.

I have no problem running the snippet from a plain SWT java app in Eclipse.

Thanks for any help!
Jay

JayMarvin

Actually, just calling GLContext.getCapabilities() will result in the same exit.  So it seems to be related to using the native libraries (A.K.A. DLLs), but I'm not sure.

JayMarvin

Oh, nevermind.  It looks like I had a version mismatch between my jar and the dlls!