Acrobat X Pro crashes when document closed if launched from COM API

Environment: Windows 7
Acrobat X Pro
I'm seeing some unusual behaviour when running the following code which simply launches the Acrobat Application and opens up a document with Acrobat X Pro.  Closing the document causes the program to become unresponsive and then crash.  The crash dump shows the exception as "The thread tried to read from or write to a virtual address for which it does not have the appropriate access".
I've discounted a problem with the plugin I wrote since the program also crashes without the plugin loaded. 
Same code runs fine with Acrobat 9 using the version 9 acrobat.tlb.
Can anyone help or advise?
With thanks,
Evan
HRESULT hr = E_FAIL;
VARIANT_BOOL bRet;
  try
::CoInitialize(0);
CComPtr<Adobe10::Acrobat::CAcroApp> pApp;
CComPtr<Adobe10::Acrobat::CAcroPDDoc> pDoc;
CComPtr<Adobe10::Acrobat::CAcroAVDoc> pAVDoc;
CComPtr<IDispatch> pDisp;
CComPtr<IUnknown> pUnk;
CComPtr<IUnknown> pUnk_App;
  if (SUCCEEDED(hr = ::CoCreateInstance(__uuidof(Adobe10::Acrobat::AcroApp), 0, CLSCTX_ALL, IID_IUnknown, (void**)&pUnk_App))){
hr = OleRun(pUnk_App);
if (SUCCEEDED(hr)){
hr = pUnk_App->QueryInterface(&pApp);
if (SUCCEEDED(hr)){
pApp->Show(&bRet);
else
  return hr;}
if (SUCCEEDED(hr = ::CoCreateInstance(__uuidof(Adobe10::Acrobat::AcroPDDoc), 0, CLSCTX_ALL, IID_IUnknown, (void**)&pUnk))){
hr = OleRun(pUnk);
if (SUCCEEDED(hr)){
hr = pUnk->QueryInterface(&pDoc);
if (SUCCEEDED(hr)){
hr = pDoc->Open((BSTR)CComBSTR(strPath), &bRet);
if (bReadOnly == VARIANT_TRUE){
pDoc->SetInfo((BSTR)CComBSTR( 
"ReadOnly"), (BSTR)CComBSTR("yes"), &bRet);}
hr = pDoc->OpenAVDoc((BSTR)CComBSTR(strPath), &pDisp);
if (SUCCEEDED(hr)){
HWND hwnd= ::FindWindowW(_T( 
"AcrobatSDIWindow"), NULL);  
if (hwnd)ForceForegroundWindow(hwnd);
catch(const std::wstring& s){
EC_TRACE(LVL_ERROR, s.c_str());
if (hr == S_OK)hr = E_FAIL;
return hr;

Problem solved. Evidently, the lead document in the file was corrupt. I recreated the file and it compressed without any problems.

Similar Messages

  • Acrobat x pro crashes when I try to flatten a pdf after using typewriter to insert a date

    acrobat x pro crashes when I try to flatten a pdf after using typewriter to insert a date.
    Has anybody else seen this problem? Is there a fix?
    I wanted to download the demo of acrobat XI but it says the previous version will be removed and deactivate the license. That sucks!

    Yes it is up to date.
    I can use the stamp tool and flatten it after with no problems, but the typewriter tool crashes it upon attempting to flatten.

  • Acrobat XI Pro crashes when saving as a reduced size PDF in version 11.0.07

    Since upgrading to the v 11.0.7 update, Acrobat XI Pro crashes every time I try to "save as" a reduced size PDF.  I have tried several different settings, but still crashes.

    You might try to setup the page size in the Adobe PDF printer and then print to the printer. I assume you are using PDF Maker (create PDF) and that may be the problem. You might also open the preferences in PDF Maker and turn off most of the options - none should be needed for a single page since you would likely not be using transitions, bookmarks, etc.
    Just as a test, you may want to just start with printing ot the Adobe PDF printer, but you will likely get the default paper size with the PPT shrunk to fit.

  • Acrobat 8 Pro crashes when customizing toolbars

    Good day,
    i am using Adobe Acrobat 8.1.2 on Mac OS 10.4.11, and am having some trouble trying to customize my toolbars. i can easily choose which toolbars i want to show up docked into each document, but when i go to "Customize Toolbars" under the tools menu, and start adding or removing specific tools, it allows me to do it only until i try to quit the application, at which time i get the dreaded dialog box "The application Acrobat quit unexpectedly". it doesnt matter which tool i choose, or how many or few, if i change even one tool, it will crash when i try to quit the app, and it does not hold onto the changes.
    anyone else have this issue, or any ideas on how to eliminate it? i would love to get rid of a lot of the tools i never use from my tool bars.
    thanks
    cr

    I can customize the toolbars without problem. I'd suggest looking for a
    corrupt preference file or perhaps one with the wrong permissions. As to
    the old way of handling tools, I can detach the tools from the document
    window. Just drag them off or on if you prefer them there.
    Mike

  • Acrobat X Pro crashes when I try to scan

    I recently upgraded my computer to Windows 7 (32-bit).  I used to have Acrobat Pro 6 when I was running WinXP, but I knew that wouldn't be compatable with Win7, so I went out and got Acrobat X Pro.
    My scanner is part of my multifunction device: Samsung SCX-4720F
    Acrobat X Pro installed fine, as did my scanner driver.  When I attempt to Create a PDF from my scanner, Acrobat X crashes every time.
    I've searched the web for the problem, and have seen posts by lots of other people who have the same or similar problem with Acrobe Pro 9 using Samsung scanners, but I found no solution.  Haven't seen any posts about it for Acrobat X Pro yet, but I know it hasn't been out all that long.
    My scanner works fine. I have used it with Omnipage Pro 17 with no problems.
    Anyone have any ideas?

    Hi
              The crash seems to be happening because of DEP (Data execution prevention) on Win 7. The issue happens when Acrobat tries to communicate with scanner drivers which are not DEP compliant. It seems Samsung driver is not DEP compliant. To verify the same you can turn OFF DEP on Win 7, although it is not recommended.
    To turn off DEP follow the steps mentioned below:
    -          In the Start Menu, navigate to All Programs, thenAccessories.
    -          In the Accessories menu, right click on “Command Prompt” and select “Run as administrator.“
    -          You may need to provide Administrator credentials at this point.
    -          In the Command Prompt window, type “bcdedit.exe /set {current} nx AlwaysOff” and press Enter.
    -          You should see “The operation completed successfully.“
    -          Close the Command Prompt.
    -          You must then reboot your computer.
    Turning DEP is not recommended, so please raise this issue with Samsung also. Let us know if these steps help.
    -Ravish

  • Acrobat X Pro- crashing when saving

    Hello,
    I'm trying to use Adobe Acrobat X Pro to edit a large pdf. I can make the edits in the document, but whenever I try to save, the system crashes and all changes are lost unless I'm lucky enough to have the document recovered from the crash. Any known fixes? Thanks!

    Hi,
    May I know the operating system you are using and version?
    Have you opened the PDF file from a shared drive?
    Are you facing issues with a particular PDF file or all the PDF files?

  • Acrobat 9 pro crashes when trying to distribute

    win xp sp3
    acrobat 9 pro
    new-ish to acrobat
    I have an interactive form, created in acrobat 9 pro. Every time I try to distribute it (forms > distribute form > manually collect responses in my email inbox > save a local copy and manualy send it later > finish) it crashes & I get an error message: "AppName: acrobat.exe, AppVer: 9.5.2.295, ModName: acrobat.dll, ModVer: 9.5.2.295, Offset: 00604f17"
    The really odd thing here is that it only does this if I try to save it over the network. If I open the form from/save to a local drive e.g. the desktop or a thumb drive it works fine.
    Anyone got any idea what's going on & what to do about it?
    TIA

    There was an update this last week, taking the current version to 9.3.2. The early versions often have little bugs like you describe, so an update is the first thing to try. If you download the updates from Adobe.com (the downloads>updates page), be sure to download all of them and then install them in order. If you use the updates under help, you can usually update the lowest number one they show and return for any further updates.

  • Acrobat X Pro crashes when I open Output Preview

    I'm trialling Acrobat X Pro on Windows 7 Home Premium 32bit (why is the trial not available for Mac?) and every time I open Output Preview in a 6 colour file, with a Hexachrome Output Intent, the whole application crashes? This used to happen in v9 but I thought it had been fixed in X.
    Does anyone know how to fix this?

    Have you updated to the latest point update for Acrobat - 10.1.3?

  • Acrobat 9 Pro Crashes When Scanning Sets of Documents

    I am supporting a user at my site who is running a Windows 7 Pro machine (32 bit) with Adobe Acrobat Pro 9 with all latest updates applied.  She is continually having an issue when converting sets of scanned documents to PDF.  She is prompted that Adobe Acrobat Pro has stopped working and crashes out.  It does not exhibit this behavior on individual scans or smaller batches of documents. She seems to be encountering this issue when she tries to process, for example, a batch of 15 pages or more.
    Here is what is being generated in event logs:
    Log Name:      Application
    Source:        Application Error
    Date:          9/20/2011 11:52:42 AM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      MAWSS6777.mawss.com
    Description:
    Faulting application name: Acrobat.exe, version: 9.0.0.332, time stamp: 0x4850eb76
    Faulting module name: OCRLibraryInf.dll, version: 2.0.0.1, time stamp: 0x4850b821
    Exception code: 0xc0000005
    Fault offset: 0x000206f1
    Faulting process id: 0x1218
    Faulting application start time: 0x01cc77ad500567bc
    Faulting application path: C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Acrobat.exe
    Faulting module path: C:\Program Files\Adobe\Acrobat 9.0\Acrobat\plug_ins\PaperCapture\OCRLibraryInf.dll
    Report Id: f4534a50-e3a8-11e0-a299-0021700bc14d
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
    I have tried running repair installs of the software as well as completely removing, rebooting, then reinstalling the software.  I have also ran system file checker and chkdsk to make sure no other corruptions exist.  I have also checked to make sure that there were no Windows Updates that may be impacting things and have verified she has the latest driver version for her Fujitsu 6230 Scanner.  I am running short of ideas and, so far, not getting any good ideas from Google Searching.
    Any help or advice would be greatly appreciated.

    Also, your log says: Acrobat.exe, version: 9.0.0.332
    Looks like you have not updated Acrobat after install. The current version is 9.4.6. Also try updating Acrobat, Help->Check for updates

  • Acrobat X Pro crashes when signing a document

    Acrobat crashes on any attempt to sign a document.  Error is as follows:
    Problem signature:
      Problem Event Name:          APPCRASH
      Application Name:          Acrobat.exe
      Application Version:          10.1.0.534
      Application Timestamp:          4ded1a14
      Fault Module Name:          AcroForm.api
      Fault Module Version:          10.1.0.534
      Fault Module Timestamp:          4ded283d
      Exception Code:          c0000005
      Exception Offset:          000dc6ad
      OS Version:          6.1.7601.2.1.0.256.48
      Locale ID:          1033
      Additional Information 1:          0a9e
      Additional Information 2:          0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:          0a9e
      Additional Information 4:          0a9e372d3b4ad19135b953a78882e789
    Tried updating to current version and Acrobat crashed completely.  Restored to 10.0.1.
    Eric

    Yes it is up to date.
    I can use the stamp tool and flatten it after with no problems, but the typewriter tool crashes it upon attempting to flatten.

  • Adobe Acrobat 9 Pro Crashes When Scanning with Canon DR-4010C Native Interface

    When doing a custom scan in Adobe Acrobat Pro 9.2, I need to be able to show the Canon DR-4010C native interface so that it will auto-crop when I am scanning small documents such as receipts, etc.  I have another model scanner that does it automatically (a Canon Dr-2510C) but I need that same functionality when I scan with the 4010.  I can see the setting when I configure Adobe to use the scanner's native interface however when I choose "auto detection" on the size (in the scanner's interface) and press scan, Adobe immediately crashes.  Please help!

    Also, your log says: Acrobat.exe, version: 9.0.0.332
    Looks like you have not updated Acrobat after install. The current version is 9.4.6. Also try updating Acrobat, Help->Check for updates

  • Acrobat XI Pro crashing when changing highlighted text properties

    After install update 11.0.07 EVERY after highlighting a section of text and attempting to change the properties the program crashes, this is happening in ALL my documents with highlighted text
    Here is what I see, first screen shot is a PDF file that I received. To rule out errors in the first file I created the file in the second screen shot with the same results in both files when attempting to change the highlighted text properties ie CRASH
    I'm in two mind as to ether uninstall and re install and apply update 11.0.06 , as there was no problem then, as this only seemed to start when update 11.0.07 was applied. OR to totally remove and re-install and then apply update 11.0.07  and see if this continues

    I have the same problem with KERNELBASE.dll but the procedure is the same, I change into something thanks
    Nome dell'applicazione che ha generato l'errore: Acrobat.exe, versione: 11.0.4.63, timestamp: 0x52288928
    Nome del modulo che ha generato l'errore: KERNELBASE.dll, versione: 6.1.7601.18409, timestamp: 0x53159a86
    Codice eccezione: 0xc06d007e
    Offset errore 0x0000c42d
    ID processo che ha generato l'errore: 0x18ec
    Ora di avvio dell'applicazione che ha generato l'errore: 0x01cf833d351b70ed
    Percorso dell'applicazione che ha generato l'errore: C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe
    Percorso del modulo che ha generato l'errore: C:\Windows\syswow64\
    Nome dell'applicazione che ha generato l'errore: Acrobat.exe, versione: 11.0.4.63, timestamp: 0x52288928
    Nome del modulo che ha generato l'errore: KERNELBASE.dll, versione: 6.1.7601.18409, timestamp: 0x53159a86
    Codice eccezione: 0xc06d007e
    Offset errore 0x0000c42d
    ID processo che ha generato l'errore: 0x18ec
    Ora di avvio dell'applicazione che ha generato l'errore: 0x01cf833d351b70ed
    Percorso dell'applicazione che ha generato l'errore: C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe
    Percorso del modulo che ha generato l'errore: C:\Windows\syswow64\KERNELBASE.dll
    ID segnalazione: 730f9cd2-ef30-11e3-a912-00269e8fad5f
    ID segnalazione: 730f9cd2-ef30-11e3-a912-00269e8fad5f

  • Acrobat 9 pro crashes when using Clear Scan OCR on OSX 10.8 (Mountain Lion)

    Just wonder if/when there will be a fix available. Anyone experiencing the same problem?

    Yeah, they kind of decided to just write off the issue. I mean "Searchable image" works, but for whatever reason ClearScan decides to just crash the program. I wonder if there is a licensing issue. God only knows how much time I've spent dealing with the licensing software in some of their other products (i.e. Premiere Pro), so I wouldn't be surprised.

  • Acrobat XI Pro crashes when I try to open it.  Mac OS 10.10.1.

    Just purchased and installed.  On MacBook Pro Retina.  I get a long Problem Report.

    Hi Erick5,
    What is the exact version of Acrobat XI installed on on you Mac?
    Have you tried to install latest updates for Adobe Acrobat? Also you may try to repair disk permission using Safe mode in Mac: http://support.apple.com/kb/PH14204
    Repairing Disk permissions: https://us.battle.net/support/en/article/repair-disk-permissions-and-repair-disk   
    Regards,
    Ajlan Huda

  • Acrobat XI Pro Crashes when Bates Stamping and/or Sanitizing

    Hi and help! I'm running Windows 7.  I'm trying to bates stamp pdf files (converted PSTs via Acrobat). The program gets as far as allowing me to pick the formatting, but freezes at the "replacing fonts"  satege. (Not certain why it has to do that either).  Was working fine on larger files (10,000 KB) until yesterday. I've broken them into smaller one, unchecked security preferences, but still nothing.  Taking longer to trouble shoot than it did to review the darn 10,000 pages! Any idea would be MOST appreciated! Thanks!

    Hi Erick5,
    What is the exact version of Acrobat XI installed on on you Mac?
    Have you tried to install latest updates for Adobe Acrobat? Also you may try to repair disk permission using Safe mode in Mac: http://support.apple.com/kb/PH14204
    Repairing Disk permissions: https://us.battle.net/support/en/article/repair-disk-permissions-and-repair-disk   
    Regards,
    Ajlan Huda

Maybe you are looking for

  • HDMI or RGB: Which is better via MacBook Pro?

    Hello. I want to connect my MacBook Pro (with a Mini-Display Port) to my HD flat-screen monitor in my living room. The HD flat-screen monitor does both RGB and HDMI connections. I can do a Mini-Display Port to RGB adapter to connect them. -Or I can c

  • When I click on a mailto: link, Thunderbird says it's already running but there is no Thunderbird process running.

    I opened Firefox on a freshly rebooted PC, went to click on a mailto: link in a webpage and get the error message that Thunderbird is already running. Thunderbird is not running, but will not open for sending email. The cause could have something to

  • 3314 (FLVHeaderIntegrityFailed) when loading a video

    [ Problem ] I've created my own packaging application based on the code in the 'packaging content' documentation. The output from this packager is just the encrypted video (i.e. no .metadata file). I then modified the sample AIR client to read the me

  • Applescript with quicktime and excel2004

    I would appreciate any help on the following. I have a lot of quicktime videos I need to look at. Each movie contains many subjects doing diffferent things. Subject A say begins to talk, and I can get the time code of this point by looking at the qui

  • Table with planning definition?

    Hi friends! Does anybody know where I can found any table, report or transaction, in wich can I see the planning definition? (ie: all the characteristics in each planning level, all de aggr levels, etc) Thanks in advance!