On Dec 30, 2008, at 5:53 PM, CuppoJava wrote:

>
> Hi,
> I'm just noticing some subtle threading problems when running a Jme
> application from the REPL within inferior-lisp mode Emacs.
>
> For instance this works:
>
> (. jmetest.renderer.TestArrow main nil)
>
> But this doesn't: (attempting to execute from a separate thread)
>
> (def thread (proxy [Thread] []
>                         (run []
>                              (. jmetest.renderer.TestArrow main nil))))
> (. thread start)
>
> The REPL just hangs.

I don't know why proxying Thread isn't working, but I do this to start  
up jME from the REPL in a separate thread:

(.start (Thread. (fn [] (.start viewport))))

Where viewport is an instance of a subclass of BaseSimpleGame that was  
created via gen-class.

That's on Mac OS X with Java 1.6.  That's using revision 1150 of  
Clojure and swank-clojure from around the same time (Dec 10).


>
>
> This only happens when using the REPL from within Emacs. Not when I
> run the REPL in windows command prompt.
>
> Any help at all would be greatly appreciated.
>  -Patrick
> >


--~--~---------~--~----~------------~-------~--~----~
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