I
Ian Malone
Hi, I was wondering if anyone could suggest
reasons the following might be misbehaving.
I've followed the IBM JNI tutorial
<http://www-128.ibm.com/developerworks/edu/j-dw-javajni-i.html>.
IT works fine on Windows with jdk1.5.0_11
and Visual C++ 6. I've also tried it on
Fedora Core 6, using gcc -shared to compile
the C code and Sun's jdk1.5.0_10. Everything
seems to work except that the sum over the
integer array does not return the correct
result. This is particularly bizarre because
setting the result individually to elements
of the array shows them to be correct.
Anything I could be trying to fix this behaviour?
reasons the following might be misbehaving.
I've followed the IBM JNI tutorial
<http://www-128.ibm.com/developerworks/edu/j-dw-javajni-i.html>.
IT works fine on Windows with jdk1.5.0_11
and Visual C++ 6. I've also tried it on
Fedora Core 6, using gcc -shared to compile
the C code and Sun's jdk1.5.0_10. Everything
seems to work except that the sum over the
integer array does not return the correct
result. This is particularly bizarre because
setting the result individually to elements
of the array shows them to be correct.
Anything I could be trying to fix this behaviour?