开发者

Problem When Accessing MAPI properties from C#

开发者 https://www.devze.com 2023-02-04 12:28 出处:网络
We are having a repeated exception occur in our error log whilst accessing MAPI properties. Our VST0 2005 Outlook addin is experiencing problems at a particular site. The addin is running on a 64bit

We are having a repeated exception occur in our error log whilst accessing MAPI properties.

Our VST0 2005 Outlook addin is experiencing problems at a particular site. The addin is running on a 64bit exchange terminal services environment there within Outlook 2003.

I am getting the following error: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Microsoft.Office.Interop.Outlook.AddressEntry.get_MAPIOBJECT()..."

We am seeing this error repeatedly. The funny thing is the addin was running fine on this box until a couple of months ago.

The underlying class we are using to access MAPI was provided by Helmut Obertanner here: http://www.outlookcode.com/codedetail.aspx?id=1112. It has worked just fine up until now.

Can any bright spark out there help me out wi开发者_运维百科th this one? Thanks


A lot of things the Outlook API won't let you change (making it read-only)

It's really frustrating sometimes.

For that, a lot of people use a library called Redemption: http://www.dimastr.com/redemption/

I've used it a long time ago and have only good things to say about it.


It's really tough to say without seeing a bit more code, but a bit of a guess here, addresses change, some are added and some are removed. Even just moving an address will change it's entryid. So, it may be that you have saved and trying to use a long obsolete address entryid. Insure you are acquiring fresh entry ids.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号