Hi
I’ve spent all day trying to find the bug in the linux ff code. The symptom is that each time the code is started, an event is uploaded to the device. The problem is, that the device I have can hold 8 events, and each time I run it, it doesn’t clear the old ones out.
I’ve written some test java code, that uses the same interface as jinput does, but this code doesn’t have the same issue. I have noticed a couple of things during the development of the new native interface and test code.
not doing a ‘free’ in the native code of the device node I’m using, seems to always cause the issue. adding this free seemed to fix the tests.
So i’m thinking that there are some references to objects or structs or something that the java code keeps alive some how. If I don’t specifically call the free by calling a dispose methed from the java side, then it always appens.
I’ve created a branch in CVS for the linux plugin dir and below, called forcefeedback, that contains the current work.
I’m most confused and admit that JNI is not my strong point.
Endolf