Skip to main content
Participant
October 19, 2021
Question

Rarely freezes when calling LoadFile of SDK (AxInterop.AcroPDFLib.dll) in an application using VB

  • October 19, 2021
  • 1 reply
  • 300 views

I will post for the first time. Sorry for the beginner question.

 

【phenomenon】
The SDK is used in the app using VB (C #), and the PDF preview is realized in the app.
I have implemented the above process by calling the LoadFile method in AxInterop.AcroPDFLib.dll, but in rare cases it may freeze. The probability is less than 1%.
As for the freeze event, when I click the app, nothing happens, and when I click the app after that, the error "Process is not responding." Is output from Windows.
I have no choice but to restart the app.
I think that the cause is probably the wait process due to the multi-threaded architecture of the VB application, but I would like to confirm it with caution.

 

【question】
-Is there any etiquette when calling the LoadFile method?
-Are there any bugs currently being discovered in LoadFile itself (although it would be very rude)?

 

【PC environment】
Windows10 (1803)

 

Thank you.

This topic has been closed for replies.

1 reply

Legend
October 19, 2021

Acrobat is not multi-threaded, so I suggest you limit your interactions to a single thread (perhaps using a mutex). This might help. However, Acrobat is prone to this sort of thing.