Working the entire weekend

By Danny Arends in Personal
Posted at: 10 Apr 2011, 20:31, last edited: 09 May 2013, 12:36

Well it's something I do too often I guess. 

Working in the weekend... Especially such a nice weekend as we had this last weekend, Oscar was enjoying himself on the balcony in  the sun until an hour ago or so.

Poor me,

But well I got a lot done: 
Saturday was Molgenis day I wanted to find out why the JVM was crashing on some of my objects and found out two important facts about using the JNI from C++:

1: CallVoidMethod and CallObjectMethod and similar functions in the JNI.h you must call it with all the parameters that are specified in Java. Also NULL needs to be cast in. Which is logical, but well it crashes the JVM ( EXCEPTION_ACCESS_VIOLATION ) when you don't call it with NULL. Example: 
function: void foo(){ }
with template: ()V
Becomes: env->CallVoidMethod(env, obj, NULL)

2: Java threads can be used from C++ which is a nice bonus, I hope synchronizing them will be as easy as calling a lock p.waitfor() in the running Java thread to lock the generated C++ objects in theirs

On Sunday I totally rebuild the Google-Financial package, to be easier to use. I packed all the data together into a single object called the corporation object. And then created some basic print and plot functions for it. See the results on:

Well, perhaps I'll add some more later today


Last modified: 09 May 2013, 12:36 | Edit