I recently received some welcome feedback from an astute developer regarding bugs in the sample Remote Differential Compression managed code wrapper class for MSDN online. Previous links regarding that sample are here:
The developer’s comments follow:
"I’ve noted some bugs that I believe fixed the crashes on the .NET interop. On some functions that take BOOL, you used MarshalAs.U1 instead of MarshalAs.Bool. On some enums, you used pad = 4 or 8; that in fact can be set to auto (0). These settings create problems on different processor platforms (x86 to x64). After fixing those I was able to create a simple console app with RDC features. I’m still having problems with the IComparator interface returning Win32 error and HRESULT == 0, but I reckon that it might be related to my recursion logic rather than the interop code."