c***@gmail.com
2009-05-13 05:57:47 UTC
Folks i am setting a long field in Java through JNI in one file "mm.c"
as
MPI_Group group;
MPI_Comm_group((MPI_Comm)((*env)->GetLongField
(env,jthis,CommhandleID)),
&group);
return (jlong)group;
Now this returned field is set to "handle" and when i print handle ,
it gives me this -2013265920
When in another file "nn.c" i try to get the handle
jlong handle = (*env)->GetLongField(env,jthis,GrouphandleID);
It gives me 1140850688 i-e not the one which i set from "mm.c"
Can any one help?
as
MPI_Group group;
MPI_Comm_group((MPI_Comm)((*env)->GetLongField
(env,jthis,CommhandleID)),
&group);
return (jlong)group;
Now this returned field is set to "handle" and when i print handle ,
it gives me this -2013265920
When in another file "nn.c" i try to get the handle
jlong handle = (*env)->GetLongField(env,jthis,GrouphandleID);
It gives me 1140850688 i-e not the one which i set from "mm.c"
Can any one help?