Skip to main content
Participant
May 19, 2022
Question

x64 C# WinForm with AcroPDF.dll crashes with System.BadImageFormatException

  • May 19, 2022
  • 2 replies
  • 1057 views

Windows 10 (x64) 20H2 with 2022-05 Cumulative Updates installed

Adobe Acrobat Reader DC (2022.001.20117, 64-bit)

I have a simple WinForms form where I added the Adobe PDF Reader COM component. It just initializes the component and loads a PDF. When I build in x86, the PDF is shown. When I build in x64, the application crashes with:

 

System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
   at System.Windows.Forms.SafeNativeMethods._TrackMouseEvent(TRACKMOUSEEVENT tme)
   at System.Windows.Forms.Control.HookMouseEvent()
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I have enable debugging for Acrobat and captured the logs with DebugView for both architectures (see attached files x86.log and x64.log).

How can I make x64 work?

Thanks,

Bernhard

This topic has been closed for replies.

2 replies

Legend
May 25, 2022

Have you actually reported this to Adobe? (Posting in the community forums doesn't do that, and there are no Adobe staff here for developer support. There is no support, free nor paid, for Acrobat Reader. At one time developer support could be purchased for $200 per case, but that facility seems to have gone).  If you haven't reported it, you can do this here: Feature Request/Bug Report Form (adobe.com)

Participant
May 25, 2022

Is someone from Adobe looking into this issue? And if not, what do I have to do to make someone from Adobe looking into it and provide feedback, how to solve this problem?

Thanks and best regards,

Bernhard