Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Good diagnosis, thanks!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now