A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Attempted to read or write protected memory



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 10th 08, 02:16 PM posted to microsoft.public.outlook.program_addins
sd[_2_]
external usenet poster
 
Posts: 69
Default Attempted to read or write protected memory

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  
Old September 11th 08, 04:24 PM posted to microsoft.public.outlook.program_addins
Dave [MSFT][_2_]
external usenet poster
 
Posts: 2
Default Attempted to read or write protected memory

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 05:53 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.