Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Avoiding RemoveDocument()
  FAQ FAQ  Forum Search   Register Register  Login Login

Avoiding RemoveDocument()

 Post Reply Post Reply
Author
Message
bostjan.klemenc View Drop Down
Beginner
Beginner


Joined: 19 Aug 14
Location: Slovenia
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote bostjan.klemenc Quote  Post ReplyReply Direct Link To This Post Topic: Avoiding RemoveDocument()
    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
Back to Top
bostjan.klemenc View Drop Down
Beginner
Beginner


Joined: 19 Aug 14
Location: Slovenia
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote bostjan.klemenc Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store