Dan Griffin's Blog

Comments on security, PKI, smart cards, cryptography, and entrepreneurship.

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:

http://jwsecure.com/dan/2007/07/rdc_com_registration_error.html

http://blogs.msdn.com/onoj/archive/2007/05/10/windows-vista-sample-remote-differential-compression.aspx

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."

Permalink |

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment