Plugin WindowsForms without closing before closing the Acrobat window

I have a plugin that I build that opens a Windows form, allows the user control some things and do some calculations and then to send a block of text to the PDF document.

The problem is that if the user does not close the Windows Form before closing the main acrobat window, the program will crash because of a violation of read access to a location memory.  The problem does not occur if the windows form is closed in the first place and then the main acrobat window is closed.

i.e.

1. the user opens a document

2. the user starts the shape of the window using the plugin

3 user performs some work using the document and the windows

4. the user is done so they close the acrobat window

5. the user sees that the windows form is still open and close.

6. the error occurs

I create the windows form using Application::Run (gcnew Form1());

In the windows form, I added this function:

public: static void ExitCalc(){
Application::Exit();
}

This function is called in the .cpp file that generates the drop as part of the PluginUnload, but the problem remains.

I need to close the windows form object before the closure of the acrobat window.

Thanks for the help.

There is a notification that you can apply when a document is closing (and many others too!).   Check the documentation for more information about the notifications.

Tags: Acrobat

Similar Questions

  • How to create a child window without closing the parent window

    Hi all

    I have a requirement to create a child window without closing the parent window. I have to click on an element in the parent window, then is expected to open a child window. The parent window must not be closed before you close the child window.

    Kindly help me in this.

    Thank you and best regards,

    Myvizhi

    Hi all

    I found the solution for this. I created a new page. Then I created an article in the style of link in the parent element, and I put the following properties in the link element:

    Destination URI: OA.jsp?page=/seagate/oracle/apps/seasoa/que/webui/SeaSoaHeaderDetailPG&headerId={@ErrHeaderId}&retainAM=Y&addBreadCrumb=Y&backPage=S

    Target framework: _blank

    This opens the new child window without closing the parent window.

    Thank you and best regards,

    Myvizhi

  • How can I open a file search location (in another window or) without closing the search window?

    I use Window 7 Home Premium.  Once I find a file in Windows Explorer, I expect to be able to right click, choose "Open file location" and get the folder in which the file was found to open it in another window.  Instead, the same window I looked into is used to open the folder in which the file was found.  Therefore, if the file was not the one I'm looking for, I have to click on the arrow to the left or press the BACKSPACE key and wait for the results of research to refill.  Often I want to compare two or more files in which some files have the same name.  This now means that I have to open two or more instances separate Windows Explorer.  I prefer to open a Windows Explorer window, search for a file, and open the location of the files of a couple or a few files with names.  How can I get "instead of opening the file" to open a separate window?

    This is a default feature, as far as I could tell.

    However, after looking for a file and if research meets your requirements, there is an option for "Open in a new window" and "open file/folder location."

    But, if I understand your message that you do not click "back" or the back"" button. It is something that is not possible, as far as I know.

    Leave your comments:

    Windows 7 comments
    http://mymfe.Microsoft.com/Windows 7/Feedback.aspx? formID = 195

    Microsoft Connect
    https://connect.Microsoft.com/dashboard/Info/

  • Close the last tab without closing the application firefox

    Greetings!

    1.i would like to close the last tab without closing the application. The behavior I expect is the application to open a new empty tab when I close the last tab currently I can't close the last tab which already has some open site in it.

    2. when I open a new tab, I have to enter a Web site address. I expect the app to just open a new empty tab and let him to enter an address or not for me.

    Thank you for your support. I love firefox for Android.

    It is being developed and will be changed to allow the closure of the last tab in Firefox 18 or 19.

  • How can I display an error message on the listening port close popup without closing the popup.

    Hi Experts,

    JDeveloper 12.1.3.0.0

    How can I display an error message on the listening port close popup without closing the popup.

    Thank you

    Roy

    As its name suggests, close listener of popup is called when popup is closed so you can not do this.

    If you want to display the popup message, use your own buttons instead of the ok/cancel default buttons and close the popup programmatically.

    Dario

  • I was converting pdf to word. I tried to download multiple documents, but the system froze.  I closed the Acrobat Reader. Now, I see no export tools more.  I even tried to restart the computer.  I am currently with my account.

    I was converting pdf to word. I tried to download multiple documents, but the system froze.  I closed the Acrobat Reader. Now, I see no export tools more.  I even tried to restart the computer.  I am currently with my account.

    Hi bulldogcl1,

    Please perform this cleanup tool to uninstall the reader Download Adobe Reader and Acrobat cleaning - Adobe Labs tool, reboot your system & install the latest Adobe Acrobat Reader DC Acrobat Reader DC Learn & support , sing with your Adobe ID to use the export to service PDF format using Acrobat Reader. Export PDF to Acrobat Reader DC.

    You can also use this online https://cloud.acrobat.com/exportpdf service

    Let me know if it solves your problem.

    Kind regards
    Nicos

  • How come back initially on an editing session without closing the entire program and start again?

    How come back initially on an editing session without closing the entire program and start again?

    Hello

    There are two answers to this. If you have not saved the image since the opening, you can restore the file Menu-Revert or F12 and that will bring back you at the beginning. A more elegant solution is the historical Panel.

    Photoshop has a history panel (Windows Menu-history) that keeps track of everything you do on an image and allows you to go back in the flow of work and in effect then go ahead if you change your mind. The original image is always registered as a snapshot and then subsequent action recording. So you can come back not only the original image, but any previous change after opening. You can even take your own snapshots which is a useful feature.

    Hope that helps

    Terri

  • Forms hangs before closing the browser window in IE7

    Hello

    When executing our application forms in IE7, it crashes when closing the browser window.
    The same request has no problem when running in IE6.
    Customers have Windows XP. We use the webforms 10.1.2.2 and Jinitiator 1.3.1.28, which is certified against IE7 (see http://www.oracle.com/technology/products/forms/htdocs/10gR2/clientsod_forms10gR2.html).
    If first, we open the java console of jinitiator window, we are able to close the window of the browser without any problem, but this isn't a solution for users.

    Any suggestions to solve this are welcome,
    Kind regards
    Els

    Registry keys have similar permissions to how NTFS permissions behave. The data values do not have permissions. Right click on the name of the key (looks like a folder & is on the left in regedit) & go to permissions. It is very important to do this step for users who have restricted permissions on Vista/XP/Citrix systems. If users have user with power or better, you can skip this step. They will not always plant without this parameter.

  • If I click once on an e-mail in the message window while I closed the preview window, I opened that makes e-mail?

    If I click once on an e-mail in the message window while I closed the preview window, I opened that makes e-mail? I worry because I don't want to open a message that my bad-ware download on my computer. If the preview window is closed, I noticed that the number of e-mails read does not change when I click once on e-mail. Can I assume that unread means that it has not been opened.

    Read the answer! Your question is answered there.

    Read / unread is purely an indicator. It has no real meaning. If you go into the menu (alt + T) tools > options > advanced > reading and display, you can change when a mail is marked as read in immediately to 10 seconds (this is what outlook express used) up to 1000 seconds.

    The software marked the email read is that this logic can go. It's always "BOLD", the software did not mark the message read.

    You open the mail? It is an unquantifiable statement.

    In the context of Thunderbird an individual mail is not a discrete element that is stored. It is a part of your data for mail/News. So try to equate open to action just does not fit.

    Thunderbird received mail as a series of lines. He collected in an email that he stores in a file with all your other emails for this folder. You open the file in that the mail is stored? Totally irrelevant Thunderbird opens to get mail every time that mail is added to the folder or to view a mail in this folder.

    Each time a letter is displayed (any mail) the file all your emails for this folder are saved in the opening and reading.

    If clicking on the mail list 'open' the file. Probably not, it was probably already open. The file is opened, read, written to and updated probably half a dozen times since Thunderbird started so if you click on the mail to see won't change anything good at all. If the e-mail file has been closed it will be open to view the contents of the mail, but he is perhaps already open.

    The key is that you try to apply assumptions to mail that simply do not apply. That's why I sound as if I'm going in circles.

    You also may ask, when I fill the kerosene tank my electric light.

    • The software mark mail as read when you say
    • It opens files underlying storage constantly. Clicking on an entry may or may not cause the opening of the file.
    • Your mail is not in a file on its own, it is in a file that contains all the messages in the folder and the mail deleted until the folder is compacted.
  • case without closing the

    I just replaced the battery in an ipod video 5th generation when I closed the case on one side of the case closes properly, theres a small gap, can I do?

    That's because something inside interferes with the power to shut down the case completely?  If Yes, open to the top one make sure that everything is in its place.  Compare the old battery to the new.  If the new battery is substantially thicker compared to the old battery, it is defective or not properly designed for a 5th generation iPod.

  • How to send a file without closing the socket?

    I wrote a program to transfer a file by using the tcp connection, where I closed the socket because the receiver must detect the end-file.  But now I would extend it to several files for which I shouldn't close the socket until all files are sent. I can't find a way to do this. So please help to solve.

    Such a long thread, so many errors.

    > Send an end of file marker after each file

    Eventually, which cannot work unless the EOF marker can occur in the file, which is unknowable, or there is a convention of escape agreed where it occurs in the file. In which case, you must also apply the convention to escape to escape Convention. For example, you can terminate with ETX and escape with ESC, but this means that the ETX and ESC must be escaped in the data file, and which in turn means that you need to escape out of ETX and ESC ESC ESC when you receive.

    > In the link, they said the error to happen is because of the header

    No, in the link, they said that the error is caused by using a BufferedReader and then read directly the data stream. Jet disappears in a BufferedReader, err, buffering.

    > BufferedReader has a read (byte [] buffer) method

    No, BufferedReader doesn't have a read (byte [] buffer) method.

    Follows a proven response, unspeculative with code.

    1 use the sender DataOutputStream and DataInputStream to the receiver.

    2 send the file name with writeUTF() and read with readUTF().

    3. send the length of file with writeLong() and read it with readLong().

    4. send and receive exactly that number of bytes, as follows:

    length = din.readLong (); in the receiver, or File.length (to sender)

    total length = 0;

    int count;

    ubyte [] buffer = new byte [8192]; or what you want, any size > zero

    While (total < length="" &&="" (count="din.read(buffer," 0,="" (int)math.min(buffer.length,="" length-total)))=""> 0)

    {

    dout. Write (buffer, 0, count);

    Total += count;

    }

    Errors and omissions excepted. You can use this code on both ends.

  • Open excel sheet by sheet name... Subvi without closing the

    Hi all

    I'm experimenting with excel and labview and I want to open a spreadsheet by name.  I created a project with a main vi where I hit a button to start the process.

    When this button is hit an event handler opens my Subvi who actually asks for a file, then scans all journal names and then in this sub - VI, I have an another Subvi who appears and gets this journal names.  When I hit OK it must close and the first Subvi should continue.  This everything works fine and I am able to read the name of favorite sheet but does not close the Subvi requesting the name of the sheet read.  When I run this Subvi in itself then it closes when I hit ok.

    I added the whole project here so if someone could have a look and tell me what I am doing wrong I would appreciate.

    Thank you

    Lieven

    Ok... I found the problem with another post on the forum.  I changed the appearance of the dialog window that has solved the problem.

    Lieven

  • Where is the 'Acrobat Windows Forum search' button?

    I gave much this Sin forumthis changed format (reason no individual, I can see the improvements, but it seemed just to take a little more time to review and do things), so maybe I'm being dense with my subject line?  The first thing I usually want when I enter a forum is looking for a topic that can answer my question already, but I don't see are Adobe search options in the world (no thanks) or all forums (no, I'm in the Acrobat forum because I have a question of Acrobat ).  Once I sent back a list that includes unnecessarily all the forums, I get a new search bar and a drop-down list of Adobe applications, so I can limit, but I already used my daily allowance of mouse clicks and lose interest. Did I miss something?

    There is no 'Acrobat Windows Forum search' button.

    http://forums.Adobe.com/search-tips.jspa

  • service of Firefox without closing the

    I use CCCleaner at the end of each session of my PC. Since the FF5 update, I frequently get a message of CC saying he can't clean up because FF is still ongoing. It was after I closed FF. I look in the Manager of tasks, Apps and FF is not there. However, in the process, there is an entry for FF. When I stop it, all right.
    How can I make sure that when I close FF, the process is interrupted too?

    TKS

    Do a clean install (re)-:

    -> To download a new copy of Firefox and save the file to the desktop.

    -> Uninstall your current version of Firefox and delete the folder Program Files of Firefox before installing this copy of the Firefox installer.

    • Do not remove the data of a personal nature if you uninstall the current version.
    • It is important to remove the Firefox Program Files folder to delete all the files and make sure that there is no problem with the files that were leftovers after uninstall.

    Check and tell if its working.

  • Menu accordion without closing the point selection (Mobile site)

    Hi, I am building a site with an accordion menu for scroll a page navigation. The menu works very well because it is closed at the start and goes down on the press to reveal navigation, however once the user selects the item they wish to naviagte to the menu still expanded. Preview of Muse, it's working properly, the accordion of closing, once an item is selected, but in-situ (the site is hosted on BusinessCatalyst), it does not work. I tested on Android and Iphone using the chrome and standard browsers, none of them work as expected. The site is here: www.cordellhouse.com

    Any help gratefully received!

    Sorry for that! My bad...

    I just watched your mobile version, and I could see that it does not close after you make a selection. You can also test it with this link, without using a mobile device:

    http://cordellhouse.BusinessCatalyst.com/phone/

    I'm afraid it's an incompatibility between an extract of the Muse and the 'real world'. The menu accordion is not destined to become a menu collapse, with the obvious behavior of allowing users to select and navigate. As a matter of fact, in a situation where users would read major texts in an accordion, they wouldn't be happy to close automatically when you navigate to the page. Only refreshing or revisit the page requires the accordion to close itself.

    The only workaround I can think of, is to make it clearer to the user to manually close the menu. (Use an 'x' or something.)

Maybe you are looking for