No - I don't think it is a security issue. I had them try and export the
calendar from my application to Outlook and it brings up the Outlook
security dialog. I then had them enter 10 minutes so there would be plenty
of time to then try and export contacts. It gets to around 110 of 700
contacts to export and then it errors out upon reading the body. I don't
get it. It reads the body for the first 100+ contacts and then errors out
and gives an "out of memory error." But, it seems to work just fine on my
Outlook 2003 but not on their Outlook 2002.
Mike
Is this running against an Exchange server mailbox? If so it might be the
RPC channel limit. That's usually set to 255 and is set in the registry on
the server. Once you exceed that number of open RPC channels you get various
errors including out of memory errors.
If you are looping to handle multiple items then that's likely the problem.
The fixes are to eliminate usage of multiple dot operators so Outlook
doesn't open internal variables for each dot operator, explicitly releasing
your objects each pass through the loop to close their RPC channels and if
necessary using a shorter loop called repeatedly.
Normally any open internal variables aren't released until you exit the
procedure where they were created as they go out of scope. In that case your
loop procedure might have to be called repeatedly, say once for every 50 or
100 items.

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
> No - I don't think it is a security issue. I had them try and export the
> calendar from my application to Outlook and it brings up the Outlook
[quoted text clipped - 6 lines]
>
> Mike
MikeA - 27 Jul 2007 04:51 GMT
Okay - I have a LOT more information now. Here's what's going on and I do
not understand why but I have discovered that the version of Outlook is not
important at all.
I had said in my OP that it gets to around reading contact #110 and then
errors out. What is happening is the line:
? loItem.Body
is the one erroring out. Actually, I'm trying to read the body and it
errors out. Now, what is interesting is for the first 110 records it works
fine but errors out on record 111. The records are not the ones I'm trying
to import from my application but rather other records that were manually
entered in Outlook.
As it turns out, I had a similar proble on my computer. What happend was I
ran it through a loop and when I did this on my computer it worked fine:
loItem = loItems.item(1)
? loItem.Body
But, when I did this (all from the command prompt in VFP:
loItem = loItems.item(60)
? loItem.Body
It errors out. In fact, I can't read any properties at all for item 60.
But this line:
? loItems.count
returns 64. So, I can't understand why for some records (that were directly
entered by me in Outlook and not imported from my database application) it
errors out but for others it works fine. For now, my solution is to use an
ON ERROR command to trap the error and continue. But, I am a little
perplexed as to why some objects are not returning any values.
Any thoughts?
Thanks,
Mike
> Is this running against an Exchange server mailbox? If so it might be the
> RPC channel limit. That's usually set to 255 and is set in the registry on
[quoted text clipped - 22 lines]
>>
>> Mike
Ken Slovak - [MVP - Outlook] - 27 Jul 2007 14:18 GMT
I have no idea other than maybe the items aren't of the correct type? If
that's not it then it may be corruption of some sort in the problem items.

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
> Okay - I have a LOT more information now. Here's what's going on and I do
> not understand why but I have discovered that the version of Outlook is
[quoted text clipped - 38 lines]
> Thanks,
> Mike
MikeA - 28 Jul 2007 07:02 GMT
If it is corruption (which is what I also suspected) is there some kind of
"pack" or "reindex" or "fix databases" command in Outlook?
Thanks,
Mike
>I have no idea other than maybe the items aren't of the correct type? If
>that's not it then it may be corruption of some sort in the problem items.
[quoted text clipped - 42 lines]
>> Thanks,
>> Mike
Ken Slovak - [MVP - Outlook] - 30 Jul 2007 14:31 GMT
Just the external applications ScanPST.exe and ScanOST.exe, both usually
located in the C:\I386 folder. You run those with Outlook closed, using the
one for whichever store type you're using.

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
> If it is corruption (which is what I also suspected) is there some kind of
> "pack" or "reindex" or "fix databases" command in Outlook?
>
> Thanks,
> Mike