Archive for June, 2008

JNI - exception.toString()

Blog: June 17th, 2008

Sometimes JNI works. And then it fails.
I am still working on one of the bugs but I found a code to print out the exception (ex.toString() equivalent) in c:

if (env->ExceptionCheck()) {
jthrowable e = env->ExceptionOccurred();

char buf[1024]; memset(buf, 0, 1024);

// have to clear the exception before JNI will work [...]

Crowd Control - TOJAM 3 - Part 2

Blog: June 8th, 2008

I know Tojam3(tojam.ca) ended a month ago but I was asked not to release the code before end of June. It’s June and though Tojam site will be updated shortly…since hardly anyone checks my blog, I will share the original and revised version now.
[Update: The only reason I have the game on my site is [...]