Skip to main content
Participant
April 22, 2016
Question

Acrobat DC Pro Activex crashes on Close

  • April 22, 2016
  • 1 reply
  • 952 views

Hi Guys,

I am new in Acrobat. I am using Acrobat Activex for display of pdf files in my Qt application. It works fine for acrobat XI and earlier but It creates problem in its DC pro version. The problem occurs only in that case when I am trying to close that activex control. It crashes the application on close. My snippet is:

ui->widget->setControl("{CA8A9780-280D-11CF-A24D-444553540000}");

ui->widget->dynamicCall("LoadFile(const QString&)",previewfile);

after this when i try to close that display window, my application crashes.

Thanks

This topic has been closed for replies.

1 reply

June 13, 2016

Try to load c:\Program Files (x86)\Common Files\Adobe\Acrobat\ActiveX\AcroPDFImpl.dll by yourself,

then free your component.

The crash occurs while freeing the control.

There is a call from AcroPDFImpl.dll to AcroPDF.dll.

Inside this called procedure the control is freed but also the

AcroPDFImpl.dll (where the call came from) is unloaded.

The return then jumps to an address wich is no longer valid because of the unloaded dll.

The simplest and effectivest solution i found, is to load this dll additionally by yourself

with loadlibrary.

Unload it after the control is destroyed or if you are nor sure,

leave it loaded because when your app is closed windows unloads it automatically.

Legend
June 13, 2016

Good diagnosis, thanks!