Error when calling Display.destroy()

Started by bobjob, February 18, 2010, 13:59:43

Previous topic - Next topic

bobjob

QuoteException in thread "AWT-EventQueue-0" java.lang.NullPointerException
   at sun.awt.Win32GraphicsEnvironment.displayChanged(Win32GraphicsEnvironment.java:109)
   at sun.awt.windows.WToolkit$4.run(WToolkit.java:706)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

The funny thing is that this error doesnt come up with JRE6
Only Happens when I make a call to destroy() from fullscreen, Eclipse, Running on Windows XP, Java 1.5.0_21.
It also seems less likely to show up when im running the program at a higher resolution, so Im gussing its a timed thread issue. It Doesnt seem to effect anything as I destroy the program to change resolution and then create it again.All it seems to do is just spit out an ugly error.


Matzon

since lwjgl isn't in the stacktrace, I am not sure what we can do about it?

princec

I believe this is a known bug in JRE 5's to do with display resolution changes, and it has indeed been resolved in JRE 6. It will occur when any application changes display mode - not just your own, and not just LWJGL.

Cas :)