Re: [Swingosc-devel] java exception on begin drag
Brought to you by:
sciss
From: James H. <jam...@gm...> - 2010-07-25 04:24:37
|
On 7/25/10 10:24 AM, James Harkins wrote: > I tested by launching SwingOSC.jar from the terminal, then opening > Aquamacs (which launches sclang). Dragging is fine. It's also fine if > the server was launched by sclang previously, and then I recompiled > the library (new instance of sclang, old SwingOSC), or quit and > relaunched Aquamacs without quitting SwingOSC. Oh crap, I was wrong about this. The exceptions got written to the terminal window. Hm. I've definitely seen dragging throw the exception in the first sclang session where it's launched, then behave well after relaunching sclang. I.e., I just did exactly these steps: 1. Quit the swing server that I launched in the terminal. 2. Reboot the server from sclang (g.boot). 3. Run this and drag -- Java exception got posted. w = Window("test", Rect(910, 50, 110, 30)); d = DragSource(w, Rect(5, 5, 100, 20)) .beginDragAction_({ "drag".postln }); w.front; 4. Recompile the library from Emacs (without quitting the swing server). 5. Run the same code and drag. No exception. So it seems a workaround for me is to recompile the library the first time SwingOSC gets booted, and then leave the same instance of SwingOSC up and running all day. hjh -- James Harkins /// dewdrop world jam...@de... http://www.dewdrop-world.net "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman blog: http://www.dewdrop-world.net/words audio clips: http://www.dewdrop-world.net/audio more audio: http://soundcloud.com/dewdrop_world/tracks |