Our environment is W7 x64 8GB and VS 2010 with your latest demo release. 3.7.0.4.
We noticed that with some files. .doc (ie Word 97-2003) the system crashes with a memory violation.
In particular, we received an memory exception testing your example MailMerageReplaceDemo.zip taken from your site.
- Code: Select all
document.LoadFromFile (@".. \ .. \ Fax.doc ");
This is the detail.
- Code: Select all
System.AccessViolationException non è stata gestita
Message=Tentativo di lettura o scrittura della memoria protetta. Spesso questa condizione indica che altre parti della memoria sono danneggiate.
Source=mscorlib
StackTrace:
in System.Runtime.InteropServices.Marshal.CopyToManaged(IntPtr source, Object destination, Int32 startIndex, Int32 length)
in al.a(ib A_0)
in al.a(vl A_0, Guid A_1, IDictionary A_2, PropertyType A_3)
in al.e()
in al.ab()
in v6.a(al A_0, Document A_1)
in Spire.Doc.Document.LoadFromFile(String fileName)
in MailMerage.Form1.button1_Click(Object sender, EventArgs e) in C:\Downloads\MailMerageReplaceDemo\MailMerageReplaceDemo\Form1.cs:riga 31
in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ButtonBase.WndProc(Message& m)
in System.Windows.Forms.Button.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
in System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
in System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
in System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
in System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
in MailMerage.Program.Main() in C:\Downloads\MailMerageReplaceDemo\MailMerageReplaceDemo\Program.cs:riga 17
in System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
in Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
in System.Threading.ThreadHelper.ThreadStart()
InnerException:
With other files. doc we have the same result .... otherwise with .docx everything works fine.
Thanks in advance.
Flavio