C#, App.Exit() is not closing Acrobat process.

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

  1. #1

    Default C#, App.Exit() is not closing Acrobat process.

    In my C# Application, I am using Acrobat to merge PDFs.

    private static CAcroApp mApp;

    //Initialize Acrobat by creating App object
    mApp = new AcroAppClass();

    //Hide Acrobat
    mApp.Hide();

    //MERGE PDFs Here//

    //Close Acrobat
    mApp.CloseAllDocs();
    mApp.Exit();

    When I open up Task Manager, I can see Acrobat is still running and has the merged pdf open. Is this a known problem?
    Metal_Detector@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Acrobat crashes when closing a document.
      I have developed a simple Acrobat Addin, which adds a menu item and a toolbar button. The active document will be closed when this menu item or...
    2. closing and re-opening a document re-instantiates acrobat.
      I must not be closing my files/documents correctly . When I try to close the current document and load another one using pdDoc =...
    3. Closing PDF document is not removing the process from task list
      I am opening the pdf document in IE6. When I close the explorer, the document seems to be closed but the AcroRd32.exe still stays in the task list....
    4. Acrobat shutdown/exit problem
      When I'm browzing the web and clicking on links, some of them will automatically start loading Acrobat. If I try to stop it from loading, the...
    5. Opening & Closing Acrobat reader - An easier way?
      at my workplace, we are developing a new website that will have all financial report requests published to the screen as a pdf. When these reports...
  3. #2

    Default Re: C#, App.Exit() is not closing Acrobat process.

    I don't recall a "closeAllDocs" method...I would be sure to close down each document individually.

    Also, depending on what version of Acrobat you are using, it may/will stay up as long as about 30-60 seconds after you ask it to close...
    Leonard_Rosenthol@adobeforums.com Guest

  4. #3

    Default Re: C#, App.Exit() is not closing Acrobat process.

    I am using Acrobat 9 Pro and it doesn't close the process no matter how long I wait after calling mApp.Exit()... Any other ideas to why it isn't closing?
    Metal_Detector@adobeforums.com Guest

  5. #4

    Default Re: C#, App.Exit() is not closing Acrobat process.

    Check that all documents closed properly...
    Leonard_Rosenthol@adobeforums.com Guest

  6. #5

    Default Re: C#, App.Exit() is not closing Acrobat process.

    Thanks for your suggestions!

    The problem is, I am using PD Layer to merge all the documents... I can remove all the mApp calls and it will still merge.. And I do close all the documents properly with no exceptions. With or without the mApp calls, the Acrobat process still exists in task manager.

    Is there a way to close the Acrobat process through the PD Layer?
    Metal_Detector@adobeforums.com Guest

  7. #6

    Default Re: C#, App.Exit() is not closing Acrobat process.

    Nope. Only the app.Exit().

    of course, you can always use standard Windows API calls...
    Leonard_Rosenthol@adobeforums.com Guest

  8. #7

    Default Re: it needs a seperated thread - C#, App.Exit() is not closing Acrobat process.

    Hi,
    in my application the acroApp process is "somehow" bound to the calling process. So when I trigger the acroApp.exit() from my calling process nothing happens. But when I close after that the calling process this effects, that the acroApp process is shut down automatically after 16 seconds.

    I guess, that we have to open the acroApp process in a new thread. After that it will be independant and we can shut it down since running forth the calling process.
    Best regrads
    Axel Arnold Bangert - Herzogenrath 2011
    AxelArnoldBangert Guest

  9. #8

    Default Re: C#, App.Exit() is not closing Acrobat process.

    Hi,
    in my application the acroApp process is "somehow" bound to the calling process. So when I trigger the acroApp.exit() from my calling process nothing happens. But when I close after that the calling process this effects, that the acroApp process is shut down automatically after 16 seconds.

    I guess, that we have to open the acroApp process in a new thread. After that it will be independant and we can shut it down since running forth the calling process.
    Best regrads
    Axel Arnold Bangert - Herzogenrath 2011
    Unregistered 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