Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - Change to recurring (AKA Yet another bug fix)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Change to recurring (AKA Yet another bug fix)

 Post Reply Post Reply
Author
Message
JohnCrenshaw View Drop Down
Groupie
Groupie
Avatar

Joined: 08 September 2006
Status: Offline
Points: 65
Post Options Post Options   Thanks (0) Thanks(0)   Quote JohnCrenshaw Quote  Post ReplyReply Direct Link To This Post Topic: Change to recurring (AKA Yet another bug fix)
    Posted: 25 May 2007 at 1:15pm
This should only an issue when using the MAPI data provider (I didn't test the other, so I can't be 100% sure.)
 
In xtpcalendarmapidataprovider.cpp at line 3542 we are inside the MAPI callback, dealing with the fact that the event changed, and updating the cache. On this line, there is a silly mistake.
ptrEvent2->SetRecurrencePatternID(dwPatternID);
the pattern ID was just grabbed from another event pointer, and now it is being coppied over to this one. This is fine, except that in this case, the old event HAD no pattern ID, and the new one does. This causes the code inside _AddRPatternWithExceptions (called by ChangeEvent which is called on the next line) to fail when it assumes that we DO have an ID. The fix is fairly basic.
if (dwPatternID != XTP_CALENDAR_UNKNOWN_RECURRENCE_PATTERN_ID)
{
    ptrEvent2->SetRecurrencePatternID(dwPatternID);
}
Back to Top
JohnCrenshaw View Drop Down
Groupie
Groupie
Avatar

Joined: 08 September 2006
Status: Offline
Points: 65
Post Options Post Options   Thanks (0) Thanks(0)   Quote JohnCrenshaw Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2007 at 4:17pm
Just installed 11.1.3 and this still hasn't been fixed, just want to make sure that this gets into the next build.
Back to Top
JohnCrenshaw View Drop Down
Groupie
Groupie
Avatar

Joined: 08 September 2006
Status: Offline
Points: 65
Post Options Post Options   Thanks (0) Thanks(0)   Quote JohnCrenshaw Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2007 at 6:57pm
11.2.0 is fixed, thanks a bunch.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.171 seconds.