APPCRASH in Acrobat.dll after adding annots with AFExecuteThisScript()

I have a C# app that displays PDFs in a WebBrowser control.   I also have a plug-in that loads annotations into the PDF (i.e. doc.addAnnot(<propertys>)) via calls to AFExecuteThisScript().  It works; the annots are loaded successfully.  However, whenever I do this, I get an APPCRASH after the app has terminated. Since it happens after the app exits, it's out of the debugger's scope.
Since this problem happens only after my plug-in adds annots to the PDF, I'm thinking that something Javascript-related is not being released before the app exits.  I've tried doc.dirty = false after adding each annot, and also docClose() in my plug-in's AVDocWillClose callback, but it doesn't do any good.
This is NOT caused by AFExecuteThisScript() per se.  In other words, I can do AFExecuteThisScript with or without a return value and there's no APPCRASH.  It only seems to happen when I modify the PDF (i.e. add annots) via AFExecuteThisScript().
This is not a showstopper for me but merely an irritant, because it always happens when the application terminates.  Incidentally, it did not seem to happen in Acrobat 8.
Here is the problem signature that is produced in VS 2005 after the app terminates.
Problem signature:
  Problem Event Name:    APPCRASH
  Application Name:    DrsDisposition.vshost.exe
  Application Version:    8.0.50727.42
  Application Timestamp:    4333d898
  Fault Module Name:    Acrobat.dll
  Fault Module Version:    9.3.0.148
  Fault Module Timestamp:    4b3074b9
  Exception Code:    c0000005
  Exception Offset:    0013286c
  OS Version:    6.1.7600.2.0.0.256.48
  Locale ID:    1033
  Additional Information 1:    0a9e
  Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:    0a9e
  Additional Information 4:    0a9e372d3b4ad19135b953a78882e789
Can anyone help?
Thanks.

I modified my plug-in to enable it when I open a PDF from the file system with Acrobat.exe, and then create a single annot with AFExecuteThisScript().
Everything works fine, the annot is created, and there is no APPCRASH when I quit Acrobat.
I just needed to modify my AVDocDidOpen and AVIdle callbacks to make this work (to allow me to work with PDFs opened in Acrobat.exe from the file system), so everything else about the plug-in (initialization through cleanup) is the same.
One of the last lines of output was:
     'Acrobat.exe': Unloaded 'C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Acrobat.dll'
It seems to me that the problem is related to the WebBrowser control, which apparently does not release Acrobat.dll when it destructs.  I've tried manually releasing Acrobat.dll in my app code after Application.Run(theForm); returns, i.e.
     IntPtr handle = GetModuleHandle("Acrobat.dll");
     if (!handle.ToString().Equals("0"))
          FreeLibrary(handle);
but that causes the app to crash on FreeLibrary().
I wonder if it would make any difference if I were to manually load Acrobat.dll in my code, rather than waiting for the WebBrowser control to do it when it opens the PDF.  I noticed that one of the first output lines from Acrobat.exe (after the windows libraries are loaded) is
ADOBE_READLOGGER_CMD:COMMENT:BeforeOROADOBE_READLOGGER_CMD:COMMENT:AfterORO'Acrobat.exe': Loaded 'C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Acrobat.dll', No symbols loaded.
Incidentally, I'm unable to debug my plugin when I run my app in VS 2005.  There's no process that I can attach my plug-in debugger to, probably because Acrobat 9 uses in-process DLLs to render PDFs in browsers.

Similar Messages

  • Error message in WebGUI after adding fields with EEWB - Class doesn't exist

    Hello!
    After adding fields to the component BT111H_OPPT within EEWB and BSP_WD_CMPWB I recieved an error message while trying to open an Opportunity in the WebGUI, stating:
    Cannot display view MainWindow
    An exception has occured
    Exception Class CX_SY_DYN_ILLEGAL_CLASS - Method call of IF_BSP_WD_DYN_RT_REP_SUPPORT~GET_URL_PARAMETERS failed; the class ZL_BT111H_O_BSPWDCOMPONEN_IMPL does not exist
    Method: CL_BSP_WD_COMPONENT_FACTORY=>GET_REPOSITORY_XML
    Source text Row:25
    An exception occured during the activation of target view CUBTOpptOverview.MainWindow for the navigation
    An exception has occured
    Exceptions Class CX_BSP_WD_RUNTIME_ERROR - View CUBTOpptOverview.MainWindow could not be bound
    Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
    Source text Row:162
    Has any one an idea, if this could be a bug or what went wrong? I am especially irritated, that it seems, that class was not created. After all I never changed any tables or anything in the background manually. I just used the standard tool EEWB, nothing else.
    Many thanks for any kind of help!
    By the way, I tried to go back all the steps I took previously to, kind of "un-do" my error, but I was not able to delete all created extensions, due to a another error - but that's a different story, or isn't it?
    Cheers,
    Marek

    Hello Experts,
    I know my question was a tricky one and no-one was able to help me from this forum. That's why I would like to share with you the solution I just recieved from SAP:
    Although all classes that were created whilst extending the component BT111H_OPPT were deleted, there still existed a seperate extension definition in ViewCluster BSPWDVC_CMP_EXT still persisted.
    I wasn't aware of the fact, that I had to delete that too.
    Note: in order to delete ViewCluster, use tx SM34
    The problem ist now solved!
    Cheers!
    Marek

  • Hide Acrobat When/After  Printing PDF with printdialog

    In Acrobat 8.0, using VB.NET while printing a PDF file with printdialog , acrobat window shows and does not close after printing.
    This behavior was not present with previous versions. Are there any commands that does not show the viewer using printdialog.
    Your comments would be highly appreciated
    Thanks in advance
    Kelvin

    > If you look through this entire thread you will see that the conditions you are having is not the same as many of us here.
    I understand that. What you want to achieve can be simply done with Acrobat, but when limited to only the Reader ActiveX control there are limitations. You have to work within the bounds of what the control can provide.
    > However having an empty window open up that the user must close has been something new for most of us since version 8.
    It is new in version 8, yes. This was done for security reasons. The reason being the possibility of malicious software being developed. I don't want to give anybody ideas for a malicious application on a public forum, but if you want a full explanation personally I would be happy to contact you.
    At least this way the user knows what's happening, and your average Joe who doesn't know about task manager can still right-click in the taskbar and close Reader to solve the problem. It balances worldwide user security against a small usability feature for Acrobat SDK application developers that are limited to only developing for Reader and yet again only when using silent printing. As I'm sure you can appreciate and understand, worldwide security won that battle - Reader is a secure product and its intention is to stay that way.
    Is it a nuisance? Yes, a very minor one in most cases. However, there are workarounds. If you're developing with VB, what is stopping you from moving the window offscreen during print, monitoring the print queue, and terminating the Reader thread when it is done spooling? It is extra work for the developer, yes - but the fact is, security has to be at the forefront and it is unfortunate that you as the application developer have to do extra work in order to maintain the high level of security expected by Reader users.
    If you have suggestions for a secure alternative approach, I am honestly glad to hear them if you care to discuss them.

  • After adding datafile with OEM a trace file genarating in alertSID.log file

    Hi to All,
    I have added a datafile with OEM but while adding its taking some time so terminated that program and added the datafile with command prompt but after some time i seen that datafile in datafile list and after this thing Im getting error and our server is very slow users gettting access to over server very slow and a trace file is generating in over alertSID.log file.with system language.

    user12239004 wrote:
    Hi anurag,
    # ls -lart /dev/vx/rdsk/datadg |grep his_link_y10_01_index
    crw------- 1 oracle dba 315,129093 Mar 14 09:53 his_link_y10_01_index_ts01
    crw------- 1 root root 315,129077 Mar 15 13:58 his_link_y10_01_index_ts02
    # chown oracle:dba his_link_y10_01_index_ts02
    # ls -lart /dev/vx/rdsk/datadg |grep his_link_y10_01_index
    crw------- 1 oracle dba 315,129093 Mar 14 09:53 his_link_y10_01_index_ts01
    crw------- 1 oracle dba 315,129077 Mar 15 13:58 his_link_y10_01_index_ts02
    root : root , I have changed the permisison now .. hope the error will subside and my next startup will be smooth
    Regards,Great,
    So give a try and let us know if you see any problem.
    Regards
    Anurag

  • Captivate 8 - submit buttons/images no longer showing on devices after adding text with javascript

    I'm working on a Captivate 8 project to publish to devices through PhoneGap. This is working successfully on iPhone and Android so far. I have modified the quiz so I have 2 types of quizzes with 3 levels each without the final score showing at the end (they have to get the answer correct to move on to the next question).  The submit buttons and image I added to each slide has been working perfectly until I added a text caption with a variable to show "Q X of 6" for each question, with X being a variable that increments by 1 for each slide and then I have another script at the end of each level to reset the variable back to 0.  This is working, however the submit button/success message and image on each slide is now not showing.  The submit button appears to still be on the screen as I can click in the same area where the it should be and it works but appears to be faded completely out, and the success message now shows so lightly I can hardly see it. My image does not show at all now.  I've checked the timeline and they are all set the same, to appear for the rest of the slide.  Any ideas?

    actually I think it might be an issue related to upgrading my Mac from Mavericks to Yosemite as the app was working perfectly before. I stripped all the javascript off and repackaged and it's having the same issue so I don't think it's the javascript. I'm going to keep looking into this.

  • Working with acrobat.dll

    Hello all,
    I am completely new to this forum, and I hope it's a right place to ask what I am going to ask. I am trying to develop application, that could take some pdf document, and to add field on certain page at certain coordinates. There will be a further use of this field, but it is not of inetrest so far. To achieve this, I am using Adobe Acrobat 7.0.5 SDK installed on my machine. I created a .Net project and added Acrobat.dll as a project reference. To be able to get to document object, I instantiate object of class AcroAVDocClass, and here the problem starts. Application fails to run, with such an error:
    Retrieving the COM class factory for component with CLSID {72498821-3203-101B-B02E-04021C009402} failed due to the following error: 80040154.
    After googling a lot, I know that it is a problem related to registering the component. Indeed, I cannot find this dll in the list of registered COM components in "Add reference" window of my MS Visual Studio 2003, and it is not on the list of .NET components as well. I tried to register the dll by means of regsvr32 - it failed as well, saying:
    C:\Program Files\Adobe\Adobe Acrobat 7.0.5 SDK\InterAppCommunicationSupport\PIAs\Acrobat.dll was loaded, but the DllRegisterServer entry point was not found. The file cannot be registered.
    Does anyone have any idea what I supposed to do? I'll very appreciate any hint.
    Thanks in advance!

    Thank you a lot, indeed, instalation of Acrobat solved the problem of registering dll. Now I want to go further and to add field to the pdf document. We have here some javascript code, that deals with this, and it works fine.
    for (var p =0;p <this.numPages;p++)
    var aRect = this.getPageBox({nPage:p});
    aRect[0] =582.711;
    aRect[1] =353.114;
    aRect[2] =594.439;
    aRect[3] =202.498;
    var f =this.addField("CaseIDBarcode","text",p,aRect );
    f.delay =true;
    f.textSize =26;
    f.delay =false;
    f.fontSubset = subset.Roman;
    f.MEOptions = 32768;
    f.textFont = "B3of9Barcode";
    f.rotation = 90;
    Now we want the .Net application to do the same thing. I know that it is possible by means of JSObject (to run javascript commands from outer .net application). Is it possible at all? Where can I find samples of code that can do it (prefferably, in C#)
    Thanks again!

  • Why does my itunes crash after start up with an "APPCRASH" error every time i open it?! I have been trying to fix this for weeks but all i can do it re-install it every other day which does nothing!

    Why does my itunes crash after start up with an "APPCRASH" error every time i open it?! I have been trying to fix this for weeks but all i can do it re-install it every other day which does nothing! I am desperate to get access to my itunes to get music on my phone and all of this just makes me want me to sell my iphone since there is no other way to add music to my phone. If things go get sorted soon you can say goodbye to my support.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • Trying to install Acrobate 8 Standard on PC with Windows 7, 64 bit. During the installation I was asked to provide "File Adobe PDF.dll for Windows Vista. How can I obtain the required file?

    Trying to install Acrobate 8 Standard on PC with Windows 7, 64 bit. During the installation I was asked to provide "File Adobe PDF.dll for Windows Vista. How can I obtain the required file?

    Nothing in the Acrobat 8.x product family is compatible with Windows 7 (or any contemporary OS).
    The Acrobat 8.x product family passed into End of Support way back -- (November 2011).
    The current release of Acrobat (XI) is compatible in Windows 7.
    Be well...

  • Could anyone please let me know how to set a ICC profile with Acrobat dlls using Csharp or VB

    Could anyone please let me know how to set a ICC profile with Acrobat dlls using Csharp or VB

    Cant we even use the dlls in an application?
    In order to automate Acrobat, you need to have Acrobat installed. There is
    nothing you can do with just the DLLs. As was already stated, Acrobat is
    not licensed for use on a server, but regardless of that, it's also
    not technically suitable for server use. You need to find a solution
    outside of Acrobat to solve your problem.
    It also seems that you don't have a good understanding of what is going in
    inside a PDF file. PDF is a very complex file format, and based on
    your questions
    and followup questions, you need to spend a considerable amount of time
    getting familiar with the PDF file format to understand how color works in
    the PDF context. Reader the PDF spec, while paying special attention to the
    section about color. You will find out that if you want to convert the
    color space of a "PDF file", you actually need to convert the color space
    associated with every single object in your PDF file. That is fairly simple
    for vector graphic and text, but when it comes to images, you may have to
    convert the image data. Once you have a good understanding of what it is
    you need to do within the PDF file, then you can start looking for tools
    that allow you to do that. Again, Acrobat and therefore the Acrobat SDK is
    not suitable for this task. If you want to stay with Adobe products take a
    serious look at the PDF Library, which his licensed through Datalogics (
    http://www.datalogics.com/products/pdf/pdflibrary/). As you've mentioned,
    there are other, non-Adobe PDF libraries that you can also use, but this is
    the Acrobat SDK forum, so I won't discuss any of those 3rd party solutions.
    You are wasting your time while looking for a simple solution that does not
    exist.

  • Photoshop cs6 crashes with "appcrash - module ig75icd64.dll; no problem for a local admin user however. i've tried giving specified user full access to photoshop.exe and set it to Win XP compatibility. how do i fix this without giving user local admin acc

    photoshop cs6 crashes with "appcrash - module ig75icd64.dll; no problem for a local admin user however. i've tried giving specified user full access to photoshop.exe and set it to Win XP compatibility. how do i fix this without giving user local admin access?

    Danny,
    Topic or subject titles should be clear, pertinent and concise so that individual users can tell at a glance if they can help or not.
    That field is not for attempting to fit your entire question in there.
    Please keep this in mind next time you post.  Thank you.

  • Can not find Acrobat and Illustrator on my computer after installing it with CC-App

    Can not find Acrobat and Illustrator on my computer after installing it with CC-App. The CC-App show the programs as installed, but they are not seen  in "programs and funktions" or on other places on my computer.

    Hi Martin,
    Check this link and see if it helps: http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html, maybe the products weren't installed properly.
    Thanks!
    Ankit

  • Problems with WRT54GS and EasyLink after adding Comcast Digital Voice.

    I had a working network. Cable modem (Comcast), WRT54GS, 2 wired PCs (one XP/SP3, one Vista Home Edition SP1), 2 wireless laptop PCs (one XP/SP3, one Vista Home Edition SP1) and a HP OfficeJet 7210 printer (connected to WRT54GS as network printer). Everything was fine and worked.
    Then, I added Comcast Digital Voice. Obviously, they switched the cable modem for a new cable modem with the phone service option. Now, I can't print to the OfficeJet from the wired Vista PC, and EasyLink displays "initializing" for as long as I'll wait (5+ minutes).
    I finally have to kill EasyLink from the TaskManager. Any help or ideas appreciated!
    Solved!
    Go to Solution.

    I solved the problem. It turns out the new cable modem and problem with EasyLink initializing were "red herrings".
    The problem turned out to be a classic network problem! The hard-wired Vista PC had the wrong IP address. The wireless XP PC had the printer configured by network name  instead of network (i.e. IP) address.
    When I deleted the printer on the Vista PC and re-added it with the correct address everything worked fine.
    Apparently the printer got a new IP address from the server on the WRT54GS after the installation of the new modem. Also, it looks like Vista doesn't report a communication error for a network printer, but does for a USB direct connect.

  • Adobe Acrobat Pro crashing after adding video

    Why is my Adobe Acrobat Pro crashing after adding video? It added video fine just weeks ago but now has crashed 11 times while trying to add video. I've tried to add video to a 30 page presentation, a 40 page presentation and a one page test presentation...all crash after adding video. Please help.

    http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html

  • When I try to setup my iCloud, after adding my AppleID & password, the next screen is the EULA (with an Agree and a Disagree button) - I press Agree - Nothing happens.  It appears to freeze.

    When I try to setup my iCloud, after adding my AppleID & password, the next screen is the EULA (with an Agree and a Disagree button) - I press Agree - Nothing happens.  It appears to freeze.  This phone was previously owned and the last owner's apple id is what defaults...  I do not know the last owner's password. - I just want to get rid of that person's iCloud in order to create my own with my own account.

    With iOS 7 you will not be able to delete the iCloud account without providing the password for the iCloud ID.  If it is the previous owner's account, you will need to have them remove it from their ID as mentioned in this article: http://support.apple.com/kb/TS4515.

  • After a month of using CS6 Master, Acrobat ceased functioning. Many other customers with the same problem suggested deactivating Flash Pro to reactivate Acrobat. After following these instructions, the entire suite was deactivated and now dipalys a messag

    After a month of using CS6 Master, Acrobat ceased functioning. Many other customers with the same problem suggested deactivating Flash Pro to reactivate Acrobat. After following these instructions, the entire suite was deactivated and now dipalys a message that our trial that will expire in 10 days (in the middle of an upcoming charity event). Is there any way to reactivate CS6? Is the only option to delete all CS programs? Can we download CS6 again with the same product key?

    In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
    That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
    Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
    Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
    While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
    Hunt

Maybe you are looking for

  • Itunes won't let me back up my Ipod, or sync music

    Hi there My itunes won't give me the option to back up my ipod touch (3rd gen)- I have the latest iTunes and iOS (4.2) but it still won't let me create a backup. When I right click on the ipod, the only backup option I am given is to restore from an

  • What does symbol can't be resolved mean?

    Hi again. I'm looking through another tutorial and have written in a test program. I keep going over the toot(tutorial) and I can't seem to find any syntactical errors, but according to DOS I'm getting a "cannot resolve symbol" and the arrow indicato

  • Windows 7 install error 0x80300024

    Mac Pro with 4 internal hard drives. My primary startup drive (in bay #1) has 10.5 on it. Wanted to install Windows 7, so needed Snow Leopard's Bootcamp to do that. The fourth hard drive in the machine was new, so wiped that, installed Snow Leopard,

  • HTTP reciever adapter URL parameters

    Hello all, I have a question regarding passing parameters as querystring in the url of reiever HTTP adapter. This is an RFC> XI> HTTP scenario and we're posting to an external URL. Here are the details URL: xxxx.yyyyy.com Service Number: 80 Path: /ap

  • Problem stopping the Labview Starter Kit motors (huge offset?)

    Hi I implemented an algorythm for the Labview Starter Kit. It reads a map and navigates from the initial point to the goal. The Starter Kit only performs two movements: "go straight X mm", and "turn 90º left/right (the turning is made when stopped, l