SharpBITS . , Big Bug, 64- . , , P/Invoke. :
int block2 = Marshal.ReadInt16((IntPtr)((int)subBlock + 2 ));
IntPtr int x64. :
int block2 = Marshal.ReadInt16((IntPtr)((long)subBlock + 2 ));
:
int block2 = Marshal.ReadInt16(subBlock, 2);
I highly recommend that you make the application run in 32-bit mode if you use this library to avoid these problems. Project + Properties, Build tab, Platform Target = x86. You can notify the author here.
source
share