ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
AWJNI 0.3 plus events (Sdk)
AWJNI 0.3 plus events // SdkgeprNov 10, 1998, 3:50am
OK. Here's my first cut at adding the events to the awjni that Andrew
published. 1) I didn't do the callbacks; but it should be obvious from this how the callbacks could be done, 2) I debated using a data structure to hold the various void xyz(void) event-handler function data; but I don't think it would have reduced the source bloat, 3) some creepy things happened to me w.r.t. the java.library.path (which is used by the jvm to find the non-relocatable libaw.dll) and the $PATH variable (under bash this is used by GCC to find the aw.dll). But, if you take a look at the example ConverBot <http://www.swarm.com/aw/ConverBot/ConverBot-0.1.tar.gz>, it should be obvious how to execute it. Please read the license.txt <http://www.swarm.com/aw/ConverBot/LICENSE.TXT> before downloading ConverBot.... it's silly; but it's necessary. DrChandra, I hope you will be able to fold some of this, in some form, back into the official release, but until you can get time, I've put the awjni with my mods up in the parent directory. Comments are more than welcome! glen -- glen e. p. ropella =><= Hail Eris! the swarm corporation W:(505) 995-0818 <gepr at swarm.com> H:(505) 424-0448 drchandraNov 10, 1998, 7:00pm
I appreciate any efforts made. Getting the time together to actually "fold
in" the changes from various sources is somewhat difficult for me. I apologize for that. Hey, at least it's open source. :) DrChandra/PK-37 -- Andrew C. Esh mailto:andrew_esh at cnt.com http://www.mtn.org/~andrewes - ACE Home Page [View Quote] geprNov 10, 1998, 7:43pm
[View Quote]
> I appreciate any efforts made. Getting the time together to actually "fold
> in" the changes from various sources is somewhat difficult for me. I > apologize for that. Hey, at least it's open source. :) You got that Right! Thanks for making the effort. BTW, I forgot to mention that the event model I used assumes the same JNIEnv for any events called by the SDK. That means that it all has to be done in the same thread :-( When we do get around to implementing callbacks and multiple instances, we'll have to worry about multi-threading. It wasn't obvious to me how to handle it, since the JNI call NewGlobalRef didn't like it when I tried to make a global reference out of the JNIEnv. glen -- glen e. p. ropella =><= Hail Eris! the swarm corporation W:(505) 995-0818 <gepr at swarm.com> H:(505) 424-0448 |