Cant call a my java function

Hi,in the line:

env->CallIntMethodA(bonhomme,move,arg2)

I get "Access violation reading location 0x00000000"

Initialization of the jvm is working fine, I'm also able to launch the main function of my class and the function is also found by:

move = env->GetMethodID(bonhomme, "setPosition", "(DDDDZ)I");

the Arguments are initialized by:

jvalue arg2[5];

thanks in advance

Christian

[442 byte] By [BioFictiona] at [2007-11-27 4:00:38]
# 1

> I get "Access violation reading location 0x00000000"

Which indicates that your error checking up to that point is completely missing.

You must check return values from JNI calls.

In appropriate places if calls return you must check for java exceptions (or at least return immediately to java without making any other JNI calls.)

jschella at 2007-7-12 9:05:14 > top of Java-index,Java HotSpot Virtual Machine,Specifications...