I'm trying to write a little game with clojure and OpenGL using the LWJGL
library.  It's running fine outside of slime but when I run it within slime
I'm getting an error on this call:

  (Display/setVSyncEnabled true)


user=> java.lang.NullPointerException (splat.clj:0)
at clojure.lang.Compiler.eval(Compiler.java:4543)
at clojure.lang.Compiler.load(Compiler.java:4857)
at clojure.lang.Compiler.loadFile(Compiler.java:4824)
at clojure.lang.RT$4.invoke(RT.java:273)
at
swank.commands.basic$compile_file_for_emacs_STAR___736.invoke(basic.clj:109)
at swank.commands.basic$compile_file_for_emacs__739.invoke(basic.clj:126)
at clojure.lang.Var.invoke(Var.java:354)
at user$eval__1498.invoke(NO_SOURCE_FILE)
at clojure.lang.Compiler.eval(Compiler.java:4532)
at clojure.core$eval__3990.invoke(core.clj:1728)
at swank.core$eval_in_emacs_package__307.invoke(core.clj:55)
at swank.core$eval_for_emacs__384.invoke(core.clj:123)
at clojure.lang.Var.invoke(Var.java:354)
at clojure.lang.AFn.applyToHelper(AFn.java:179)
at clojure.lang.Var.applyTo(Var.java:463)
at clojure.core$apply__3243.doInvoke(core.clj:390)
at clojure.lang.RestFn.invoke(RestFn.java:428)
at swank.core$eval_from_control__310.invoke(core.clj:62)
at swank.core$spawn_worker_thread__407$fn__438$fn__440.invoke(core.clj:162)
at clojure.lang.AFn.applyToHelper(AFn.java:171)
at clojure.lang.AFn.applyTo(AFn.java:164)
at clojure.core$apply__3243.doInvoke(core.clj:390)
at clojure.lang.RestFn.invoke(RestFn.java:428)
at swank.core$spawn_worker_thread__407$fn__438.doInvoke(core.clj:158)
at clojure.lang.RestFn.invoke(RestFn.java:402)
at clojure.lang.AFn.run(AFn.java:37)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at org.lwjgl.opengl.GL11.glGetError(GL11.java:1284)
at org.lwjgl.opengl.Util.checkGLError(Util.java:52)
at
org.lwjgl.opengl.WindowsContextImplementation.setSwapInterval(WindowsContextImplementation.java:109)
at org.lwjgl.opengl.Context.setSwapInterval(Context.java:219)
at org.lwjgl.opengl.Display.setSwapInterval(Display.java:983)
at org.lwjgl.opengl.Display.setVSyncEnabled(Display.java:995)
at user$init__1601.invoke(splat.clj:30)
at user$eval__1794.invoke(splat.clj:431)
at clojure.lang.Compiler.eval(Compiler.java:4532)
... 26 more


I've checked my classpath, java.library path & current working directory and
they're all set correctly but something in different about the environment
is triggering this error.  Anyone with any clue about what's going on?

Regards,

Glen Stampoultzis

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to