Crash with sample HardwareID C#
Posted: Wed Oct 24, 2018 2:16 am
Hi, I compiled the sample in VS2017 fine, and it crashes on startup with "Unable to load DLL 'enginma_ide.dll".
I have checked, there is a enginma_ide.dll at the folder root, and I place a copy in the bin\Debug and bin\Release folder too.
C:\Program Files (x86)\The Enigma Protector\Examples\HardwareID\C# (.NET)
************** Exception Text **************
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at Enigma_IDE.EP_RegHardwareID()
at Enigma_IDE.EP_RegistrationHardwareID()
at Test.frmMain.frmMain_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
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 checked, there is a enginma_ide.dll at the folder root, and I place a copy in the bin\Debug and bin\Release folder too.
C:\Program Files (x86)\The Enigma Protector\Examples\HardwareID\C# (.NET)
************** Exception Text **************
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at Enigma_IDE.EP_RegHardwareID()
at Enigma_IDE.EP_RegistrationHardwareID()
at Test.frmMain.frmMain_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)