![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
hello
I've AX ctrl (vb6) placed on a form region adjoined to Message form.This ctrl raises an event after 2 seconds each (say myevent) which is handled in VSTO addin mailWrapperclass.I need to save mailitem in that event in order to get the recipients correctly.But I get exception " Attempted to read or write protected memory This is often an indication that other memory is corrupt." for Item.save statement in myevent. This exception occurs only when I forward a message,copy some image & paste it in body of forwarded message,myevent gets triggered,when Item.Save encountered ,exception is thrown & outlook crashes.The exception doesn't occur for new message.I tried compiler optimization options suggested for same error but invain. Basically I need the recipients correctly so when user changes,adds,removes recipient I can perform some action(say setting combo value in AX ctrl).For that I'm raising the event after 2 seconds each ,saving the item to get the recipients properly.Is there any way to resolve this error or detect when recipients are changed. Thanks |
Ads |
#2
|
|||
|
|||
![]()
Hi Sd,
This is a difficult question to answer in the scope of a newsgroup. If you don't get any more traction, I would suggest opening a case with CSS. http://www.microsoft.com/services/mi...nterprise.mspx Dave "sd" wrote: hello I've AX ctrl (vb6) placed on a form region adjoined to Message form.This ctrl raises an event after 2 seconds each (say myevent) which is handled in VSTO addin mailWrapperclass.I need to save mailitem in that event in order to get the recipients correctly.But I get exception " Attempted to read or write protected memory This is often an indication that other memory is corrupt." for Item.save statement in myevent. This exception occurs only when I forward a message,copy some image & paste it in body of forwarded message,myevent gets triggered,when Item.Save encountered ,exception is thrown & outlook crashes.The exception doesn't occur for new message.I tried compiler optimization options suggested for same error but invain. Basically I need the recipients correctly so when user changes,adds,removes recipient I can perform some action(say setting combo value in AX ctrl).For that I'm raising the event after 2 seconds each ,saving the item to get the recipients properly.Is there any way to resolve this error or detect when recipients are changed. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Read and write master categories list | MA[_2_] | Outlook and VBA | 1 | December 12th 07 05:46 AM |
Read Subject from Inbox and write into Excel | Avadivelan TCS | Outlook and VBA | 1 | November 11th 06 08:49 AM |
2 GB of memory over 1 GB of memory free, and outlook complains of being out of memory | David Hettel | Outlook Express | 7 | October 18th 06 12:08 PM |
How do I delete a read receipt stuck in the memory | Jean-Pierre | Outlook - Installation | 1 | March 11th 06 12:45 PM |
I cant write/reply or forward email, or open calen, can ONLY read | laura | Outlook - Installation | 3 | February 27th 06 07:55 PM |