strange behavior of message_iterator

Jun 24, 2010 at 6:44 PM
Edited Jun 24, 2010 at 7:32 PM

I am experiencing strange behaviour of the message_iterator. The message count for the folder "Top of Personal Folders" is 33. When I open the PST in Outlook there are 33 messages in the root folder. When I am trying to iterate through the messages in the folder the loop is being executed only once with no exception thrown. I am wandering what may cause the iterator not to go through all 33 messages?

wstring name = folder1.get_name(); // reports "Top of Personal Folders"
int count = folder1.get_message_count(); // reports 33
for(folder::message_iterator iter = folder1.message_begin(); iter != folder1.message_end(); ++iter)
     // goes through this loop only once 
     // do something here

Jun 24, 2010 at 6:48 PM

Dunno. Sounds like a bug; maybe fixed, maybe not. Check to see if it repos with the latest version of the sdk from the trunk, and if so I'd probably need a copy of the PST to investigate.

Jun 24, 2010 at 7:40 PM

Still loops only once with the latest version. How can I upload the PST (it is just over 48 meg) ?

Jun 24, 2010 at 9:37 PM

Are you using the latest download (0.2) or the latest package from trunk?

If you create an Issue in Issue Tracker, you should be able to attach it.

Jun 25, 2010 at 2:50 PM

Did complete rebuild with the latest build from the thrunk and the issue is gone. Reverted back to the first release of the SDK and the issue is back. I guess it is the bug which was fixed.