These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

OpenInWindowEx keeps Acrobat in Memory (VB.Net)

lucaso
Registered: Feb 5 2008
Posts: 49

If I use OpenInWindowEx without creating an AcroDoc instance (directly an AvDoc in a Panel) a full Acro-process starts (Acrobat.exe in the Task Manager).
Once finished, closing the app, the Acrobat process keeps running, rerunning the app creates a process double the size (2 processes?)
With (2?) process in memory the OpenInWindowEx doesn't do anything.
Should I create a non-visible Acrobat-instance, which I should stop everytime?
It seems like an "anonymous" instance gets created.

Figured it out!!! The Avdoc is now global, and tested "is Nothing", if not then AvDoc.Close(1). I can now update the panel with another doc. Acrobat does stay in memory, meaning that I can probably not use without stopping that process.....

the process can be examined: If Process.GetProcessesByName("Acrobat").Lenght = 0 Then messagebox.show("Acrobat isn't running")

although pushing towards senior age, still want to keep up the pace

My Product Information:
Acrobat Pro 8.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Closing Acrobat has always been a problem. It likes to stay in process. Especially the later versions. I'm sure you'll see different activity with different versions. In fact, in Acrobat 8 the UI was changed from a MDI to SDI operation, which screwed up a lot of plug-ins. If you change the Acrobat preferences back to MDI you might also see a change in operation.

Thanks for the info,
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

lucaso
Registered: Feb 5 2008
Posts: 49
Hi Thomp,

Found a way stop (kill) Acrobat, see my last edit.
I don't really don't know if I make a mess, but the same event happens if I quit Acrobat.

Besides, the last times you really helped me out. I've got this app running that makes rather complicated links between drawings and reports outof a database. Maybe I could showoff if you're interested.

gr, lucas

off to bed: it's 2:30 AM here

although pushing towards senior age, still want to keep up the pace

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Killing the process directly is messy but it should be ok.

I'd like to see it, send me an email at: support [at] windjack [dot] com
Cheers,
Thom

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script