When I close CAcroPDDoc, Why acrobat.exe NOT release resource?

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default When I close CAcroPDDoc, Why acrobat.exe NOT release resource?

    Hi everybody.

    I use CAcroPDDoc to open many PDFs, and read its page number.
    Everytime I got the page number, I was close the CAcroPDDoc.
    But acrobat.exe did not release resource. At last error happened!

    What can I do?

    CODE:
    long CWorker::GetPagenum(CString strPDF)
    {
    long lNum;
    CAcroPDDoc *pPDdoc=new CAcroPDDoc;
    pPDdoc->CreateDispatch("AcroExch.PDDoc");
    pPDdoc->Open((_bstr_t)strPDF);
    lNum=pPDdoc->GetNumPages();
    pPDdoc->Close();
    delete pPDdoc;
    }
    Tan_Lin@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Creating instance to CAcroPDDoc taking time
      When I try to create a instance to CAcroPDDoc, as follows, CAcroPDDoc _objPDDoc = new AcroPDDocClass(); or CAcroPDDoc _objPDDoc =...
    2. AxAcroPDF How to Close Down Acrobat
      The thing is I use the AxAcroPDF on my VB6 program but whenever I use that control it opens the Acrobat Reader and then it won't close it. Is...
    3. Next release of Acrobat
      If its that close, Don't expect being optimized of Intel Mac's. Will run on Roseta though. for those of us still on PowerPC's should be interesting.
    4. Sudden Acrobat Missing Resource Error
      I've been using Acrobat 6 on XP for several months. Suddenly, today, after working with form fields, it's giving me a very vague "A resource is...
    5. Unable to Save/Save As/close Word XP file with Acrobat 5.0 installed
      One of my user is having this problem on her Windows XP PC: Dell GX260 with Windows XP Professional running 512MB RAM, Office XP, Acrobat 5.0 ...
  3. #2

    Default Re: When I close CAcroPDDoc, Why acrobat.exe NOT release resource?

    Acrobat will release the document usually about 30 seconds after you ask it to...
    Leonard_Rosenthol@adobeforums.com Guest

  4. #3

    Default Re: When I close CAcroPDDoc, Why acrobat.exe NOT release resource?

    Thank you Leonard Rosenthol!
    It works.
    Tan_Lin@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139