Print Page | Close Window

Avoiding RemoveDocument()

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2958
Printed Date: 06 May 24 at 3:45AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Avoiding RemoveDocument()
Posted By: bostjan.klemenc
Subject: Avoiding RemoveDocument()
Date Posted: 19 Aug 14 at 9:02PM
Hello.

I am using QuickPdf library version 9.13, calling it trough .NET.
My question is:
Is it necessary to cal RemoveDocument function, if I manually call Release(sintax below) at the end ? Will the "Release" method implicitly remove the document from the memory ?

public void Release()
        {
            if (dllHandle != IntPtr.Zero)
            {
               foreach (int instanceID in shutDownList)
               {
                    DebenuPDFLibraryReleaseLibrary(instanceID);
               }
               FreeLibrary(dllHandle);
               dllHandle = IntPtr.Zero;
            }
        }

Thank you for reply.
Bostjan



Replies:
Posted By: bostjan.klemenc
Date Posted: 19 Aug 14 at 10:00PM
The reason why I want to know is this error: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.


Posted By: Ingo
Date Posted: 22 Aug 14 at 7:23PM
Hi Bostjan,

the reason for this issue should be there where you call (and how you call) the library from your .net-app. Mostly the error will raise while handling the returning string-values from the QuickPDF.dll. With numeric values the error won't raise.

Cheers and welcome here,
Ingo
 


-------------
Cheers,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk