Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Acrobat DC Pro Activex crashes on Close

New Here ,
Apr 22, 2016 Apr 22, 2016

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

TOPICS
Acrobat SDK and JavaScript
882
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 13, 2016 Jun 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 13, 2016 Jun 13, 2016
LATEST

Good diagnosis, thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines