Copy link to clipboard
Copied
Hi everyone,
We are experiencing the following:
When accessing and displaying a file using the activeX interface in reader DC the windows GDI counter goes up by 2 for every pdf called.
The function used is iacroaxdocshim loadfile.
The function itself seems to be working fine and bringing up and displaying the correct pdf.
However with the final application regularly displaying new pdfs in multiple "frames" ,and running for an extended period of time the task managers GDI counter creeps up. Eventually that is then killing the app for GDI resource limit related reasons.
Whilst the windows GDI level can be increased we would much rather 'properly' handle the problem.
What is the proper way of recovering the GDI handles with the provided activeX methods?
Is anyone able to replicate the behaviour?
Thank you
Sebastian
Copy link to clipboard
Copied
Acrobat is notoriously not designed for extended and repeated automation. Did you try quitting/killing the Acrobat task and does it reset the handle count?
Copy link to clipboard
Copied
Unfortunately killing the acroread task does not release the GDI handles accumulated in the actual application.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more