I'm using the C++ "PIMNavigator" sample in the v3.2 Connectivity API package. The code itself is unchanged, but the solution was upgraded to use Visual Studio 2008 (presumably it was VS2005 before).
I get a consistent Stack error "Run-Time Check Failure #2 - Stack around the variable 'dataCalendar' was corrupted." when looking at any calendar items on my phone (a 6133). If you have the sample code, look at the CPIMNavigatorDlg::GetCalendarDetails method. The call to CAReadItem is doing something weird, and I think mis-allocating memory. Even if I comment out all code in that method after CAReadItem, as soon as I hit the method end, I'll get the above error. However, CAReadItem itself returns the right data.
I copied over the pertinent code fragments from the sample to my own code, and I get a similar error (worse, in my code the CAOperationHandle gets corrupted inside CAReadItem.
Is this a known bug in the API? Any suggestions for a workaround/solution? Is this even the right place to ask about this stuff, or is there a more "formal" support mechanism?
Brad.



