Ok here is the PBuffer example:
http://home.online.no/~bj-bakke/hello.javaWhen running the application press F2 when destroy() isnt commented out in the Capture method.
If the destroy() is commented you need to press F2 as fast as possible 2-5 times.
The results:
dell laptop with intel extreme graphics WITH destroy()
works fine
dell laptop with intel extreme graphics WITHOUT destroy()
crash with the following exception:
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: javax.med
ia.opengl.GLException: pbuffer creation error: wglCreatePbufferARB() failed: tri
ed 1 pixel formats, last error was: (Unknown error code 0)
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:268)
at com.sun.opengl.impl.windows.WindowsGLDrawableFactory.maybeDoSingleThr
eadedWorkaround(WindowsGLDrawableFactory.java:213)
at com.sun.opengl.impl.windows.WindowsGLDrawableFactory.createGLPbuffer(
WindowsGLDrawableFactory.java:160)
at hello.Capture(hello.java:139)
at hello.keyPressed(hello.java:161)
at java.awt.Component.processKeyEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Sour
ce)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Sour
ce)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Acer laptop with SiS card WITH destroy()
the following exception:
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: javax.med
ia.opengl.GLException: Error releasing pbuffer device context: error code 0
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:268)
at com.sun.opengl.impl.GLPbufferImpl.destroy(GLPbufferImpl.java:177)
at hello.Capture(hello.java:143)
at hello.keyPressed(hello.java:161)
at java.awt.Component.processKeyEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Sour
ce)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Sour
ce)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: javax.media.opengl.GLException: Error releasing pbuffer device contex
t: error code 0
at com.sun.opengl.impl.windows.WindowsPbufferGLDrawable.destroy(WindowsP
bufferGLDrawable.java:92)
at com.sun.opengl.impl.GLPbufferImpl$DestroyAction.run(GLPbufferImpl.jav
a:253)
at com.sun.opengl.impl.GLWorkerThread$WorkerRunnable.run(GLWorkerThread.
java:241)
at java.lang.Thread.run(Unknown Source)
Acer without destroy()
#
# An unexpected error has been detected by Java Runtime Environment:
# +----------------------------+
# EXCEPTION_ACCESS_VIOLA¦Enter char to copy up to: ¦e90c, pid=3724, tid=3272
# +----------------------------+
# Java VM: Java HotSpot(TM) Client VM (1.6.0-beta-b59g mixed mode, sharing)
# Problematic frame:
# C [sisgl.dll+0x7e90c]
#
# An error report file with more information is saved as hs_err_pid3724.log
#
# If you would like to submit a bug report, please visit:
#
http://java.sun.com/webapps/bugreport/crash.jsp#
The log is located here:
http://home.online.no/~bj-bakke/hs_err_pid3724.logThe IBM laptop with intel extreme graphics have the same crash as the acer laptop WITH destroy(). without destroy() I dont know.