CXTPCalendarEvents::RemoveAll making my app crash |
Post Reply |
Author | |
mass
Newbie Joined: 01 April 2008 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 07 April 2008 at 7:13am |
CXTPCalendarEventsPtr cEvents = GetDataProvider()->RetrieveDayEvents(COleDateTime::GetCurrentTime());
for (int i = 0; i < cEvents->GetCount(); i++) { CXTPCalendarEvent *p = cEvents->GetAt(i); //here I copy the usefull data for me (subject, end and start time in my class with .GetSubject .GetStartTime .GetEndTime } cEvents->RemoveAll(); the RemoveAll member produces a unhandled exeption and makes the program crash... If i comment the line the program crashes when the program finishes (when CXTPCalendarEvents destructor is invoked).. Is there any way to solve this? thx |
|
mass
Newbie Joined: 01 April 2008 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
CXTPCalendarEvent *p = cEvents->GetAt(i, TRUE);
this made my app work properly... I still dont know what InternadAddRef does but it works. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |