Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Add-in causing conflicts in public folders (http://www.outlookbanter.com/outlook-vba/7445-add-causing-conflicts-public-folders.html)

RobL February 14th 06 01:34 PM

Add-in causing conflicts in public folders
 
Hi Team,

I have an Outlook add-in that keeps a handle on which Items are selected in
an Explorer window. Each MailItem selected has a MailHandler which is a
class I designed which keeps the MailItem in a global object (Private
WithEvents mobjMail).

When the selection changes, I tear down all the current MailHandlers (which
set mobjMail to nothing) and create a new collection of MailHandlers for the
new selection.

When users of my toolbar are in a public folder and are both looking at the
same emails, they very often get conflicts on messages they -were- looking
at, even if they were looking at the emails a good while apart.

Can anyone think of a reason
Ta,
Rob
--
Software Support Engineer
i2 Ltd.

RobL February 17th 06 08:47 AM

Add-in causing conflicts in public folders
 
Dear Team,

please ignore the above post. I have found the cause of this problem.

It turns out that every time the ChangeSelection event is called I was
rewriting the current categories to the email in question. This was
considered by Outlook to be a change which was never being saved.

Hence the conflicts.

My apologies for filling up this board unnecessarily.

Rob
--
Software Support Engineer
i2 Ltd.


"RobL" wrote:

Hi Team,

I have an Outlook add-in that keeps a handle on which Items are selected in
an Explorer window. Each MailItem selected has a MailHandler which is a
class I designed which keeps the MailItem in a global object (Private
WithEvents mobjMail).

When the selection changes, I tear down all the current MailHandlers (which
set mobjMail to nothing) and create a new collection of MailHandlers for the
new selection.

When users of my toolbar are in a public folder and are both looking at the
same emails, they very often get conflicts on messages they -were- looking
at, even if they were looking at the emails a good while apart.

Can anyone think of a reason
Ta,
Rob
--
Software Support Engineer
i2 Ltd.



All times are GMT +1. The time now is 11:52 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com