When trying to compile a word document it gives me the following error:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
The Word document is very simple, I have attached it. It has been created with MS Word 2002 (10.6866.6870) SP3 English.
details of the error message:
Stack trace:
at Microsoft.Office.Interop.Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles, Object& PasswordDocument, Object& PasswordTemplate, Object& Revert, Object& WritePasswordDocument, Object& WritePasswordTemplate, Object& Format, Object& Encoding, Object& Visible, Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog, Object& XMLTransform)
at ChmProcessorLib.MSWord.SaveWord(String wordFileSrc, String htmlFileDst, Object format)
at ChmProcessorLib.MSWord.SaveWordToHtml(String wordFileSrc, String htmlFileDst)
at ChmProcessorLib.DocumentProcessor.ConvertWordSourceFiles(MSWord msWord)
at ChmProcessorLib.DocumentProcessor.OpenSourceFiles()
at ChmProcessorLib.DocumentProcessor.Generate()
at ChmProcessorLib.DocumentProcessor.GenerateHelp()
at ChmProcessor.GenerationDialog.bgWorker_DoWork(Object sender, DoWorkEventArgs e)
Class:
System.AccessViolationException
Data:
System.Collections.ListDictionaryInternal
Source:
Microsoft.Office.Interop.Word
Target site:
Microsoft.Office.Interop.Word.Document Open(System.Object ByRef, System.Object ByRef, System.Object ByRef, System.Object ByRef, System.Object ByRef, System.Object ByRef, System.Object ByRef, System.Object ByRef, System.Object ByRef, System.Object ByRef, System.Object ByRef, System.Object ByRef, System.Object ByRef, System.Object ByRef, System.Object ByRef, System.Object ByRef)
the word document I tried to convert
Hello. I have tested the test.doc file and worked for me, with office 2003.