I get the following error when using the Compare function if either DWFX file has been converted from a DWG by Design Review: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
I use the following code:
IAdMarkupEditor3 markupEditor = (IAdMarkupEditor3)axCExpressViewerControl1.MarkupEditor;
IAdComparator Comparator = (IAdComparator)markupEditor.Comparator;
Comparator.Compare(@"C:\temp\File1.dwfx", "Model", @"C:\temp\File2.dwfx", "Model");
If the files were manually exported from autocad, the above code works fine. But if I do a SaveAs via the axCExpressViewerControl to convert a DWG to a DWFX (or manually open the drawing in Design Review and to a SaveAs), the above code does not work. However, if I manually compare the two files with Design Review, it does work.
Does anyone know what's going on? Am I doing something wrong? Or is there a workaround?
Thanks,
Jonathan