AlejandraV25 / proclipsing

Automatically exported from code.google.com/p/proclipsing
0 stars 0 forks source link

Windows OpenGL + Applet issue #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Create a new applet on windows with OpenGL 
2. Use Eclipse Galileo and Processing 1.09
3. Run application as an applet, with the OPENGL option selected for size

When running the applet, get the following error:

Exception in thread "Animation Thread" javax.media.opengl.GLException: Can
not destroy context while it is current
    at com.sun.opengl.impl.GLContextImpl.destroy(GLContextImpl.java:176)
    at processing.opengl.PGraphicsOpenGL.allocate(PGraphicsOpenGL.java:202)
    at processing.core.PGraphics3D.setSize(PGraphics3D.java:316)
    at processing.core.PApplet.resizeRenderer(PApplet.java:930)
    at processing.core.PApplet.size(PApplet.java:992)
    at processing.core.PApplet.size(PApplet.java:958)
    at mytest.MyTest.setup(MyTest.java:18)
    at processing.core.PApplet.handleDraw(PApplet.java:1402)
    at processing.core.PApplet.run(PApplet.java:1327)
    at java.lang.Thread.run(Unknown Source)

Works fine when run as an application, though...

Original issue reported on code.google.com by maddpar...@gmail.com on 17 Jan 2010 at 8:56

GoogleCodeExporter commented 9 years ago
I can't run as an application..

the 'run as' menu says 'none applicable' and is inactivated..

What shoud I do?

Original comment by muclipse@gmail.com on 26 Jul 2010 at 1:55

GoogleCodeExporter commented 9 years ago
You need to include a "main" inside of your application.  Please refer to step 
5 here:

http://processing.org/learning/eclipse/

Original comment by maddpar...@gmail.com on 17 Aug 2011 at 9:54