Moderators:PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
I'd like to import annots using 'op.document.importCommentsAndFields'
But I got a error message :
An unhandled exception of type 'System.AccessViolationException' occurred in EDASMerger.dll
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Please use the try-catch block to handle the exception and use the https://sdkhelp.pdf-xchange.com/vie ... matHRESULT method to get the information about it. Once you done that, paste that information here so that we can assist further.
Thank you for your reply.
I tried try-catch block, but stepping in 'opImport.Do();' line, just stopped debugging and popped up error message above.
There are no chance to go to catch block.
Using input as PDFXEdit.IPXC_Document in AxPDFXEdit.AxPXV_Control is fine.
But I manually opened document using
From what you are telling you have not implemented the try-catch block correctly. If you want, you can make a small sample project where we can recreate this behavior. Also, please include the file that you were testing on.
There was a bug in the ImportCommentsAndFields operation when the document was not opened in the Control. We fixed this bug, though the official fix would be available from the next build. Meanwhile you can try opening the document for the import operation in the IPXV_Control, and try your code - it should work.
Also, in your sample, you forgot to call Shutdown of the Instance. Please be sure to do that.
Actually, this implementation is a DLL that merges comments from different reviewers of the same documents without using control as part of my project.
So I can't use a control to open the document. Could you provide a temporary build for me?