-
1. Re: How to close Acrobat.exe from the task manager processes through plug-in?
lrosenth Jan 8, 2010 4:16 AM (in response to anaghad)Sounds like you've forgotten to release a resource in your plugin. Make sure for every Acquire you have an equivalent Release!
-
2. Re: How to close Acrobat.exe from the task manager processes through plug-in?
anaghad Jan 8, 2010 4:27 AM (in response to lrosenth)Thanks Irosenth for ur reply. Well, you may be right that 'Release' is not happening for the doc that is 'Acquired' in the plug-in. But, as I've described above, when the user defines they key, an annot is drawn, and then its released only when user hits the custom menu item 'Close key'. The problem is how do I catch the abrupt acrobat close event in the plug-in? i.e. when the user hits the [X] button at top-right corner of acrobat?
In other words, at what place in my plug-in code, do I release it and close the acrobat so that the acrobat.exe does not remain in the processes?
-
3. Re: How to close Acrobat.exe from the task manager processes through plug-in?
lrosenth Jan 8, 2010 5:53 AM (in response to anaghad)You should register for the WillClose event on your document
-
4. Re: How to close Acrobat.exe from the task manager processes through plug-in?
anaghad Jan 11, 2010 10:42 PM (in response to lrosenth)Hey, tnx for ur response! But, the issue is reproducible on Acrobat 7.0 Professional.
I do have the 'WillClose' event registered in my plug-in. Below is the event that is wired up with 'WillClose' event:-
static
ACCB1 void ACCB2 NotifyAVWillClose (AVDoc doc, void *clientData)
{
UNREFERENCED_PARAMETER(clientData);
UNREFERENCED_PARAMETER(doc);
CloseTemplate(TRUE);
}
The 'CloseTemplate' method performs the closing of the annotation, clearing of objects and deleting the PDFfile class pointer.
And this all works fine with Acrobat.exe getting closed from the task manager processes in acrobat versions 8 & 9. However, in Acrobat 7.0, the process remains in the Task Manager.
Could you suggest any ideas on what else needs to be implemented to end the process in Acrobat 7?
Thanks!
-
5. Re: How to close Acrobat.exe from the task manager processes through plug-in?
lrosenth Jan 12, 2010 3:33 AM (in response to anaghad)Unfortunately, we stopped official support of the Acrobat 7 series of product this past December and so I am unable to provide you wish any assistance concerning that version of the product. I recommend that since we are no longer supporting it, that you cease as well - will make your life easier...


