I've read that EXCEPTION_ACCESS_VIOLATION with ExceptionCode 0xc00000005 are often due to the usage of a pointer that holds an invalid memory address. Do you think it is the case here? Did I not initialize my session instance properly? How can I solve this?

Yes, that's what I thought. How do you see it is a NULL pointer though? The problem is that the sp_session object is supposed to be created by a C method out parameter, and not a returned object. So I have to create a Pointer in Java and pass it to the initialization method, but I have no clue on how to do this. I will open a new question for this, now that I know what the problem is. Thank you.
–
nbarrailleMar 2 '11 at 14:28