A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2007 Add-in Bug with with Exchange - Long explanation



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old March 20th 09, 10:51 PM posted to microsoft.public.outlook.program_addins
Andrew
external usenet poster
 
Posts: 95
Default Outlook 2007 Add-in Bug with with Exchange - Long explanation

Hello Folks: This is a strange issue which needs a long explanation!

We have an Outlook 2007 add-in written in VB.Net, which on load of Outlook
loops through all the contacts adds a property if all the criterias are met
and then closes the contact. We tested this on multiple machines with over
2000 contacts and though it took significantly longer to complete, it did not
break.

When the add-in was loaded on an Outlook install with over 1000 contacts,
that worked with exchange however, after looping through 242 contacts it
threw an error which said that "the systems administrator had limited the
amount of items that can be opened simultaneously, and that we needed to
close some items in order to get it function properly." After that error, the
calendar view broke and wasn't displaying properly and multiple other things
did not function properly.

I am closing each contact by running this line of code so that I know its
was closed by the add-in "oContact.Close(Outlook.OlInspectorClose.olSav e)"
and setting "oContact = Nothing" just to be safe. That still didn't fix the
problem.

To get an idea as to what exactly was running, I added code to write to a
text file the count of each contact that was opened and closed. This I added
at the end of the loop and in a "Catch" in the event it threw the error. This
allowed me to see it was breaking after the 243 'rd contact.

So by luck I added another line in the loop which wrote to the log file.
Adding this "fixed" the problem because it successfully completed the loop
and everything worked fine on load of Outlook. The log file showed it looped
through the 1003 contacts the user had.

This user was did not have the "Cached Exchange Mode" checkbox set. When it
was set, there was no problem at all even without writing to the log file.

When it was not using the Cached Exchange Mode, it broke. My theory is that
even though I'm closing the contact, Outlook still has it open or has a
reference to it because it needs to update the information on the Exchange
Server. Hence the reason it thinks the contacts are still opened. Somehow,
the extra time needed to write to the text file gave it enough time to update
the exchange server and properly close the contact.

I hope I provided enough information to get a proper idea as to what's going
on.

Does anyone know exactly what's going on, so that I can have a proper fix
for this issue.

Regards,
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OUTLOOK 2007 DOWNLOADING EMAIL TAKES TOO LONG! Frustrated86 Outlook - General Queries 2 May 31st 07 04:15 PM
How long does outlook/exchange retain calendar appointments? Neil Dobier Outlook - Calandaring 3 November 29th 06 05:08 AM
Outlook crashes - no explanation - pop3 boe Outlook - General Queries 2 November 7th 06 04:40 PM
MS Office 2003 always looking for MSWORD (looking a long, long time ritter197 Outlook - General Queries 7 October 29th 06 07:01 PM
Outlook Exchange keeps sending a meeting invitation from long ago Tom Hilleary Outlook - Calandaring 0 February 22nd 06 09:19 PM


All times are GMT +1. The time now is 08:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.