1

Topic: Failures in MS Outlook at access to letters

I write the extension for MS Outlook on a C ++, communicating with it through type library. In event OnNewMail () I process the letter, requesting them through interface IMailItem.


Handling simple - at first the letter is marked through margin setting Mileage (that in the future did not come across) and the subsequent saving.


Then the necessary information is derived from the letter (obtaining date, RFC-headings, a body).


After handling the letter is deleted, or is moved to a separate folder.


The problem arose in the following: after handling of a quantity of letters MS Outlook suddenly enters into a stupor and refuses to produce letters or any information on them. Codes HRESULT thus each time different - and any of them did not come across earlier to me. On a bit mask all of them are similar on normal E_FAIL, but high bits any strange (here the list from a program broad gull; these codes have been received at attempt of call GetItemFromID
smile

hr=0xE3004005


hr=0xEB404005


hr=0xF3804005


hr=0xFBC04005

hr=0xFFE04005


hr=0x86204005

hr=0x8A404005

hr=0x8E604005

hr=0x92804005

hr=0x96A04005

hr=0x9AC04005

hr=0x9EE04005

hr=0xA3004005

hr=0xA7204005

hr=0xAB404005

hr=0xAF604005

hr=0xB3804005

hr=0xB7A04005

hr=0xBBC04005

hr=0xBFE04005

hr=0xC2004005

hr=0xC6204005

hr=0xCA404005

hr=0xCE604005

hr=0xD2804005

hr=0xD6A04005

hr=0xDAC04005

hr=0xDEE04005


hr=0xE7204005

hr=0xEB404005

hr=0xEF604005

hr=0xF3804005

hr=0xF7A04005


There is purely speculative assumption that put just in letter resaving. The problem arises at a tester on an exchange-account, at itself, alas, it was not possible to play back never. At a tester the problem too arises not always, however is played back stablly enough.


I understand, what operation with Outlook - that still , but can somebody already attacked a similar rake and knows, where here it is possible to spread straws?

2

Re: Failures in MS Outlook at access to letters

OOM often enough produces "" return codes
sad
So on the codes most likely it will not be possible to localize a problem to you.

Look, can at you interfaces leak? On symptoms like it is similar.

3

Re: Failures in MS Outlook at access to letters

Hello, Left2, you wrote:

L> OOM often enough produces "" return codes
sad
L> So on the codes most likely it will not be possible to localize a problem to you.
L> Look, can at you interfaces leak? On symptoms like it is similar.


About! It is necessary to try... At least, theoretically it seems that a problem in it. Initially I solved a question "how to receive the list of new letters". In Outlook 2003 there is event NewMailEx, however with old versions it was necessary . As a result like as solved a rake through Exchange Extension - and as a basis the example with CodeProject (
http://www.codeproject.com/com/Outlook-addin.asp) followed.


So... In this example (at all in article, and in the source code) the author here and so simply requests MAPI-shnye objects from event OnDelivery, and then them not Release-it. Whether it specially there left such rake, that the people save-pastingom was not engaged - whether itself passed to a bug. Anyway - I will check now this hypothesis.

4

Re: Failures in MS Outlook at access to letters

Hello, the Anonymous author, you wrote:

Hello, Left2, you wrote:

L>> OOM often enough produces "" return codes
sad
L>> So on the codes most likely it will not be possible to localize a problem to you.
L>> Look, can at you interfaces leak? On symptoms like it is similar.


All. Huge , Left2! Really, your guess proved to be true my checks.


I wrote also on CodeProject concerning this small insect in the code.