Menu

#20 CSharp daveSwapIed_16 incorrect marshalling

v1.0 (example)
open
nobody
5
2015-06-19
2015-06-19
No

The dotnet wrapper daveSwapIed_16 seems to be incorrect and returns undefined results:
[DllImport("libnodave.dll"/, PreserveSig=false / )]
public static extern int daveSwapIed_16(int i);
The input and return type should be short:
[DllImport("libnodave.dll"/, PreserveSig=false / )]
public static extern short daveSwapIed_16(short i);

Recompiled the wrapper and tested seems to work correctly

Discussion


Log in to post a comment.