Is this code running against Outlook connected to an Exchange server? If so
it's possible the code is running into the 255 open RPC channel limit that's
the default for Exchange. That limit can only be changed in the registry of
the Exchange server.
What happens is that an RPC channel is opened for every Outlook object
reference. If you are opening an item that opens a channel. If you access a
property on the item that can open a channel. Use of dot operators opens
internal variable objects that aren't released until the loop ends or the
procedure exits.
I don't know your code but it's possible that's the problem. In that case
make sure that you explicitly declare variables for each dot operator and
release all objects instantiated within any loops by setting them to Nothing
each pass through the loop.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Hello All,
>
[quoted text clipped - 42 lines]
>
> Rich
rich - 01 May 2008 15:47 GMT
Hello Ken and thanks for the reply.
It'll take some doing to verify this, but I doubt this is the case. This
has been working for a good while and I don't see where this setting would
have changed within the Exchange 2003 server environment.
Can you provide any more detail on how this type of application would hit
the RPC channel limit? Note that I am a desktop support techie, not Exchange.
What type of things would open the RPC channel? Is each reference to an
email address an event that would open a channel?
Thanks,
Rich
> Is this code running against Outlook connected to an Exchange server? If so
> it's possible the code is running into the 255 open RPC channel limit that's
[quoted text clipped - 58 lines]
> >
> > Rich
Ken Slovak - [MVP - Outlook] - 01 May 2008 16:23 GMT
Almost any access to an Outlook property opens an RPC channel. For example
take a simple case of an Outlook Selection collection and iterating it,
where "Sel" is the Selection:
For i = 1 to Sel.Count
That will open a channel every time through the loop as Sel.Count is
accessed. The following code only opens 1 RPC channel:
Dim Count As Long
lCount = Sel.Count
For i = 1 To lCount
If your loop has something like this:
strEmailAddress = Sel.Item(i).Email1Address
That will open new RPC channels each pass through the loop. The channels and
internal variables will remain live until the procedure ends.
Using this will close the channels explicitly:
oMail = Sel.Item(i)
strEmailAddress = oMail.Email1Address
Set oMail = Nothing

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Hello Ken and thanks for the reply.
>
[quoted text clipped - 11 lines]
>
> Rich