Calling AVDocClose with more than one PDF open crashes Acrobat

That pretty much sums it up. If I have a single PDF open and I call AVDocClose everything works great. If I have more than one PDF open it crashes Acrobat and takes down all of the open documents. Any ideas as to what might be happening and how to get around it? I'm seeing it in both Acrobat 8 and Acrobat 9.

Okay, that sounds ike it could be something to look at. I'm certainly not an expert in using the SDK so maybe you can help me identify the potential issue. This is the code I'm using with some comments to help you understand what I'm doing. I just added the ASFileSysReleasePath references after reading your post but apparently I'm still missing something. The issue occurs in the code path where I'm working with local documents.
ACCB1 void ACCB2 MyPluginCommand_Save(void *clientData)
initializeVariables();
if(myAVDoc==NULL)
// if no doc is loaded, display a message.
AVAlertNote("There is no PDF document loaded in Acrobat.");
else
//Here are a couple of functions that are just used to set up some file paths for both windows and acrobat
string docName = getDocName();
string path = buildAcroPath(docName);
ASPathName upPath = ASFileSysCreatePathFromCString(NULL,path.c_str());
//call doc exists to see if we have a local doc or one that is in control of my DMS - doesn't use any Acrobat SDK functions
bool ndExists = ndDocExists(filename);
if(!ndExists) //if the file is not from the DMS
//save this file to a temporary location - this is what actually gets sent to the DMS
PDDocSave(pdDoc, PDSaveFull | PDSaveCopy | PDSaveCollectGarbage , upPath, ASGetDefaultFileSys(), NULL, NULL);
//send the document to the DMS and get the status of the operation back - doesn't use any Acrobat SDK functions
int ndStatus = ndImport(path);
checkNDStatus(ndStatus);
else
//This is a document from the DMS. Just do a regular file save
PDDocSave(pdDoc, PDSaveFull | PDSaveCollectGarbage , pathName, ASGetDefaultFileSys(), NULL, NULL);
ASFileSysReleasePath(ASGetDefaultFileSys(), upPath);
ASFileSysReleasePath(ASGetDefaultFileSys(), pathName);
AVDocClose(myAVDoc, false);
return;

Similar Messages

  • With more than one tab open in private browsing, how do I leave private browsing all at once?

    Before the latest Firefox update I was able to close a private browsing session by selecting the STOP menu item and checking the appropriate selection in a pop up dialogue box. Now, when I have more than one tab open in private browsing, I can't end the session by selecting STOP. The dialogue box opens and offers a START option instead of a STOP option. The same is true using CONTROL+SHIFT+P. To work around the situation I need to close all but one tab and then stop the session. I want to go back to the way it was before the update and opt out of a private session entirely, regardless of how many windows or table are open, with the former two-step process.

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • With more than one window open in firefox 4 I starts to drain my memory

    With mozilla 4 I have more than one window open and my memory which has 2 gigs in it starts to drain and then everything freezes.

    Which Windows platform shouldn't make much difference. The screenshot may look as coming from an older Windows version, but the basics should be the same.
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    *Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Can't type on Flash-based site with more than one window open.

    When I try to use certain sites, I think flash, my Macbook will not allow me to type. For example, on the site "Prezi," I can type on my presentation right after I open the file, but as soon as I open a new Safari window and then return to Prezi, I can't. I have experienced this before with the site "Pandora" as well, and can only occasionally type in the search fields there. Please help!

    I am having very similar problems. We have three macbooks in the house. Mine is the older version but I have done all the upgrades. The new ones all type fine into flash based programs like prezi and voicethread, whereas I can only paste text into the program.

  • Sites with windows with more than one page open on top of each other

    Sometimes when I go to a new site, pages load on top of each other.

    Well, I don't know if this image is going to upload, but I did a screenshot so you can see what I mean. It happens on other websites, too. Remember transparencies, the clear plastic letter-size sheets you could write on? It's like stacking 2-3 sheets on top of each other, with each sheet saying something different. It looks like a jumbled mess. And it's not pop-ups.

  • Reader X shuts down when trying to open more than one pdf, or when clicking certain categories in settings

    Until a few weeks ago I have never had a problem opening more than one pdf at a time. Now Reader just shuts down when I try to do so. The same thing happens when I click on the yellow highlighted categories in settings. All the other categories open fine.
    Appreciate the help of anyone who can help me solve this.

    I guess you didn't know, but yes you can close more than one app at a time. You can close up to 3 apps at a time in the new IOS7 on the iPhone. Try opening at least 3 apps and then double click the main button to see what apps are opened. Then swipe to the left to see the three of them on your screen. Your not gonna see the ones on the side entirely but you can still put all three fingers on them, then simply swipe them up and it closes them up.
    The thing is, when you have let say 10 apps open, and you start using this trick, some of them will stay open meaning you swiped them up to close them down but the bottom icon stays there. When you come back to your main IOS desktop and then go back to close the programs that you have opened, you can see that those apps are still opened. There is only like 2 or three out of all the 10 you had opened that stayed open, but none the less it's a bug in the system I presume.
    You also asked about the icon at the bottom. When you are seeing what apps are opened, there is always a small icon at the bottom and on top you have a representation of what you were working on, and that is the part you swipe up. But often time the bottom icon will stay opened after swiping 2 or 3 of the apps to close them.

  • Adobe Reader XI won't open more than one PDF

    The latest Adobe Reader (11.0.02) won't open more than one PDF at a time. Seems to require continual re-install for each open. And each time I install, it says the application is already present on my machine, yet I cannot find it anywhere. Any suggestions out there?
    Elaine

    Thanks for getting back to me, Pat. I need to go back to wherever I was and
    remove the question. After I posted my question, I decided to delete all of
    the Adobe applications on my computer and start overŠit worked.
    I appreciate your concern,
    Elaine Davis

  • Open firefox with more than one tab?

    Can I open firefox with more than one tab?

    Several ways. Look at the tab line. do you see the '''+''' at the end? Also,
    '''''Firefox > New Tab > New Tab'''''
    or if you have the tool bar, '''''File > New Tab'''''.

  • Call Transaction and fill a select-options field with more than one value?

    Hello everybody,
    how can I fill a select-options field with more than one value.
    Here is the code example:
      CLEAR: GT_BDCDATA, GS_BDCDATA.
      GS_BDCDATA-program = 'RHALEINI'.
      GS_BDCDATA-DYNPRO = '1000'.
      GS_BDCDATA-DYNBEGIN = 'X'.
      APPEND GS_BDCDATA TO GT_BDCDATA.
      CLEAR: GS_BDCDATA.
      GS_BDCDATA-FNAM = 'PCHOTYPE'.
      GS_BDCDATA-FVAL = 'P'.
      APPEND GS_BDCDATA TO GT_BDCDATA.
      CLEAR: GS_BDCDATA.
      LOOP AT gt_hrobjinfty INTO gs_hrobjinfty.
        GS_BDCDATA-FNAM = 'PCHOBJID-LOW'.
        GS_BDCDATA-FVAL = gs_hrobjinfty-objid.
        APPEND GS_BDCDATA TO GT_BDCDATA.
        CLEAR: GS_BDCDATA.
      ENDLOOP.
      CALL TRANSACTION 'PFAL' USING GT_BDCDATA MODE 'A'
                       MESSAGES INTO GT_MESSAGES.
    THX.

    Hi,
    Please refer the code below:
    *Code used to populate 'select-options' & execute report
    DATA: seltab type table of rsparams,
          seltab_wa like line of seltab.
      seltab_wa-selname = 'PNPPERNR'.
      seltab_wa-sign    = 'I'.
      seltab_wa-option  = 'EQ'.
    * load each personnel number accessed from the structure into
    * parameters to be used in the report
      loop at pnppernr.
        seltab_wa-low = pnppernr-low.
        append seltab_wa to seltab.
      endloop.
      SUBMIT zreport with selection-table seltab
                                    via selection-screen.
    Thanks,
    Sriram Ponna.

  • WebObjects 5.3 WOHyperlink can't call an action with more than one argument

    Hi there,
    I recently upgraded from WebObjects 5.2.3 to 5.3.
    I used WOHyperlink with more than one ?<ARG> binding to build http requests...
    It used to work in 5.2.3, but not anymore in 5.3. The problem stems from the ampersand character that separates args, because it is now replaced by &.
    I found a similar issue dealing with WOSubmitButton that was resolved in 5.2.3:
    http://docs.info.apple.com/article.html?artnum=107873
    Thanks for helping me out...

    Sorry about that...
    problem stems from the ampersand character that
    separates args, because it is now replaced by &.
    Please read: the problem stems from the ampersand character that separates args, because it is now replaced by &amp;
    iMac G5 Mac OS X (10.3.9)

  • Send email from SAP with more than one attachment

    Hi all,
    How can i send email with more than one attachment and different types of document(doc,pdf,etc.) from SAP to external?
    Besr regards,
    Munur

    Hi,
    I use :
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    the main problem with different attachemts is to genereate the packing_list.
    the packing list is a kind of description of the data table... where ist the start  of an image, end, size...
    "Creation of the entry for the compressed attachment
            objpack-transf_bin = 'X'.                    " it could be an image
            objpack-head_num = lv_head_num_count .  " inital 1 each att  add 1
            objpack-head_start = 1.                     " fix
            objpack-body_start = gv_startnum.    " table with attachments  1. line one
            objpack-body_num = tab_lines.          " how many lines are in the table of attachment
            objpack-doc_size = tab_lines * 255.   " size of the  attachment...
           objpack-doc_type = lv_typ . " 'JPG'.
            objpack-obj_name = 'ATTACHMENT'.
            objpack-obj_descr = lv_stripped_name  " name of the JPG
       APPEND objpack.
       APPEND LINES OF lt_goscontent TO gt_maildata.  " data Table...
    bestreg
    robert

  • When in safari how can i have more than one window open?? New ios doesnt allow it.

    Problem is when i updated to the newest ios 7. The dang thing doesnt allow me to have more than one window open at any time. This only makes things repetitive, complicated and slow. Moreover, the icons and overall view are probably designed to be in a kindergarden game, cos they look really stupid on iPad, whos gonna take apple seriously with this so called "improvements". If anyone knows how to open more than one window at at atime i,ll be really grateful to be told. Or if anyone can tell me how to uninstall the friking update i,ll be even more grateful. Thanx guys.
    <Subject Edited by Host>

    Tap "+" sign on top right.

  • Generating excel with more than one tab

    Hi,
    I would like to ask if anyone of you know how to generate excel file from Oracle Reports with more than one tab? Is it possible? If yes, can you provide me some references on how to do it. Thanks in advance.

    Hi,
    Do this:
    1. Create an Excel file, put some dummy data in 2 or more worksheets. Save as HTM. This will create one main HTM file, and some sub-files under a folder. One HTM sub-file will be created per worksheet. In addition, one XML sub-file (called filelist.xml) and some other sub-files will be created. (you have already done this)
    2. Open one of the HTM sub-files in reports builder, and follow the steps shown in the Excel Demo on OTN to insert data in this file at appropriate place, and save as JSP.
    http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/excel/index.html
    3. You can repeat this step for all worksheets. So finally you will get one JSP file per worksheet.
    5. Now open the main file in reports builder, and add the Excel contentType element at the top
         <%@ page contentType="application/vnd.ms-excel; charset=windows-1252" %>
    6. In this file, search for the following tag
         <x:WorksheetSource HRef="./filename_files/sheet001.htm"/>
    Note that instead of filename_files you will have your own file name
    Change this tag as following:
         <x:WorksheetSource HRef="./filename_files/sheet001.jsp?userid=scott/tiger@myDb"/>
    Note that in userid, you must provide your own DB connect string
    7. Additionally, change ALL references to sheet001.htm in this file to sheet001.jsp
    Do steps 6 and 7 for sheet002.htm, sheet003.htm, and so on (if needed).
    8. Open filelist.xml (you will find this file inside the folder that contains sub-files). Here, too, change all references to JSP instead of HTM
    9. Now place the main JSP file as well as the folder containing all sub-files inside your J2EE deployment folder. Run the main JSP file. This will run the associated JSP files (the worksheets).
    This will do the trick.
    If you are worried about placing the USERID information inside your JSP code, then you can use CGICMD.DAT file, and place the userid there.
    Navneet.

  • Is there a stereo bluetooth headset that can pair with more than one device at a time?

    Is there a stereo bluetooth headset that can pair, i.e. multipoint, with more than one device at a time?
    Are the MacBook and iPhone 4 capable of multipoint bluetooth technoloagy?
    The goal is for my wife to be able to watch her Korean TV soap operas on her MacBook and still receive a call on her iPhone 4 via a stereo bluetooth headset.
    I was looking at the Motorola S10-HD but after further review saw that it only pairs with one device at a time.
    Appreciate any and all input. My Googling has returned no results.
    Rick

    TeslasBB wrote:
    pairing my BB8330 with my blue tooth earphone(TM:jawbone) and my microsoft sync thats in my car simultaneously? if i pair with the car, will i have to pair my jawbone all over again?
    You can only pair one device at a time to your 8330, or any other phone for that matter.  The "pairings" are saved to the phone, you can use one or the other and you won't have to pair it again.  Once you turn your bluetooth device on and the phone is on, they will find each other again.
    Hope this helps,
    John
    Stevie Ray! 1954-1990
    ** Don't forget to resolve your post with the accepted solution.

  • Since downloading the iOS on my iPad, I cannot download more than one pdf from mail to iBooks.  I have to shut down y iPad and start again.  Any suggestions?

    Since downloading iOS on my new iPad, I cannot downlaod more than one pdf from mail into iBooks.  I have to shut down my iPad and restart it to save a second pdf. Wasn't a problem with the old operating system.  Any suggestions?

    It seems that I have solved my issue by performing a full factory reset (erasing all content, something which I had hoped to avoid) restoring from an iCloud backup did not alleviate the issue, I had to set up as a new iPad.
    Hopefully anyone else else who has this issue in the future will be able to find this.

Maybe you are looking for