Thread: Deleted Items
View Single Post
  #10  
Old March 8th 06, 04:52 PM posted to microsoft.public.outlook.program_addins
Rog
external usenet poster
 
Posts: 62
Default Deleted Items

Yes it seems if I do wait some period of time after deleting an item
from the contacts folder it will be picked up that it has moved into the
Deleted Items Folder.
What is odd too is, I used OutlookSpy to look at PR_PARENT_ENTRYID and
it shows the deleted items folder enntry, but if I use the same in my code:
safeMailitem.get_Fields(235471106); it will return the entryid of the
Contacts folder.


Ken Slovak - [MVP - Outlook] wrote:
Well, I'm sorry to tell you nothing really looks wrong in your code

The only thing I can think of and it's a stretch, is that you might try
getting each component object as a separate object instead of using dot
operators, where Outlook always creates internal variables. So for
example set a NameSpace object and use that to call the GetItemFromID
method. Also see if you are doing anything further on in that code that
might call a procedure or item method that somehow might also be
creating an implicit object variable that isn't being released when
expected.

I'd also be curious to see if you put up some button or something and
waited a while, like 5 minutes, before clicking it and seeing if the
GetItemFromID code worked then. Just for testing of course.

Ads