Exception from serializer.WriteObject()

The code below fails when the time zone is set to Berlin (+1:00) or beyond. DateTime Test = new DateTime(); Test = DateTime.MinValue; Person myPerson = new Person(“Chris”, “Pietschmann”); // Serialize to JSON System.Runtime.Serialization.Json.DataContractJsonSerializer serializer = new System.Runtime.Serialization.Json.DataContractJsonSerializer(myPerson.GetType()); MemoryStream ms = new MemoryStream(); serializer.WriteObject(ms, Test); ==========================> Exception thrown here   The exception thrown by serializer.WriteObject()…


IProcessDebugManager

The below code snip is self-explanatory.   #ifdef _WIN64 #define IProcessDebugManager IProcessDebugManager64 #define IID_IProcessDebugManager IID_IProcessDebugManager64 #else #define IProcessDebugManager IProcessDebugManager32 #define IID_IProcessDebugManager IID_IProcessDebugManager32 #endif   If you write a native COM client that references IProcessDebugManager say using the code below, it runs fine; both the 32 bit as well as the 64 bit build.      …


RTM Credential Providers – Issue with AddRef().

If you are using the RTM Credential Providers Sample for Windows Vista you might see that the destructors are never called when you do a logoff/ logon or a lock/ unlock or restart of the workstation. I was using the SDK “Sample Credential Provider” code (from “\Microsoft SDKs\Windows\v7.0\Samples\security\credentialproviders”), did an extensive logging to make sure…


Type Library Converter tool (TlbImp.exe) version 4.0.30319.1 changes any "false" Default Boolean arguments to "true"

The Type Library Converter tool (TlbImp.exe) version 4.0.30319.1 changes any “false” default arguments to “true”. Please see the details below for an understanding.I created an ATL project named COMInteropTest and added an interface named IMyCOMServer. I added two methods namely: MyCOMServerMethodA() and MyCOMServerMethodB() with default arguments.   // COMInteropTest.idl : IDL source for COMInteropTest//// This…