Re: [Ikvm-developers] More RXTX
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2008-05-27 04:05:15
|
This looks like an RXTX bug. It tries to read a long field with GetIntField. In SerialImp.c: struct event_info_struct *eis = ( struct event_info_struct * ) get_java_var( env, jobj, "eis", "J" ); This passes in "J" (the signature of a long field), but the get_java_var function always uses: result = (int)( (*env)->GetIntField( env, jobj, jfd ) ); to read the field. Regards, Jeroen > -----Original Message----- > From: Jim Redman [mailto:jr...@er...] > Sent: Monday, May 26, 2008 19:27 > To: Jeroen Frijters > Cc: ikv...@li... > Subject: More RXTX > > This is out of my league, any suggestions? Is there a different set of > headers that the native code should be linked against? > > Unhandled Exception: System.InvalidCastException: Cannot cast from > source type to destination type. > at IKVM.Runtime.JNIEnv.GetIntField (IKVM.Runtime.JNIEnv* pEnv, > IntPtr obj, IntPtr fieldID) [0x00000] > at (wrapper native-to-managed) IKVM.Runtime.JNIEnv:GetIntField > (IKVM.Runtime.JNIEnv*,intptr,intptr) > > Thanks, > > -- > Jim Redman > (505) 662 5156 x85 > http://www.ergotech.com |