The error would have occured in the (send ....) where the drawing is done. @agent is not causing it, but you do get an exception there because of the previous exception while drawing. To debug this I suggest inserting some printlns into the function you are sending.
On Sep 21, 2:24 pm, Raoul Duke <rao...@gmail.com> wrote: > hi, > > i don't have a repro case yet, but i've been trying to use agents to > be able to get swing's thread to draw things from my engine w/out > having to think hard about threading; using @agent in my swing-related > code to get the state of things to be drawn. but sometimes i get an > error on a source line that is doing @agent. for example, below is the > top of one such exception. > > any ideas what might be going on to case this exception? i'm on > clojure 1.0.0, winxppro, java 1.6.0_15-b03. > > user=> Exception in thread "AWT-EventQueue-0" java.lang.Exception: > Agent has errors > at clojure.lang.Agent.deref(Agent.java:129) > at clojure.core$deref__3725.invoke(core.clj:1285) > > thanks. --~--~---------~--~----~------------~-------~--~----~ 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 Note that posts from new members are moderated - please be patient with your first post. 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 -~----------~----~----~----~------~----~------~--~---