System.AccessViolationException: Attempted to read or write protected memory.

Posted by Ananth on Stack Overflow See other posts from Stack Overflow or by Ananth
Published on 2010-04-30T12:01:08Z Indexed on 2010/04/30 12:17 UTC
Read the original article Hit count: 552

I get the following exception when I try to "find and replace" in a word 2007 working on Windows Vista , Windows 7.

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Microsoft.Office.Interop.Word.Find.Execute(Object& FindText, Object& MatchCase, Object& MatchWholeWord, Object& MatchWildcards, Object& MatchSoundsLike, Object& MatchAllWordForms, Object& Forward, Object& Wrap, Object& Format, Object& ReplaceWith, Object& Replace, Object& MatchKashida, Object& MatchDiacritics, Object& MatchAlefHamza, Object& MatchControl)

Is there any solution for this ?

Iam using .net3.5 C#.

© Stack Overflow or respective owner

Related posts about c#3.0

Related posts about microsoft-word