Page 1 of 1

How to troubleshoot LoadLibrary() failure?

Posted: Tue Apr 20, 2021 8:21 am
by hua
Hi guys,
I have a program that loads blat.dll using LoadLibrary().
From my pc during testing everything works but on customer's pc, I keep getting a return value of 0 from LoadLibrary()
Any idea on what could cause this? The exe and dll is in the same folder at c:\emailer

Exe was linked using Harbour, hbmk2 and FWH1912

TIA

Re: How to troubleshoot LoadLibrary() failure?

Posted: Tue Apr 20, 2021 8:25 am
by Antonio Linares
Hua,

Please use this tool:
https://github.com/FiveTechSoft/FWH_tools/blob/master/peinfo.exe

peinfo.exe blat.dll

and check what external DLLs blat.dll requires. It seems as your customer does not have all of them.

Re: How to troubleshoot LoadLibrary() failure?

Posted: Tue Apr 20, 2021 8:44 am
by hua
Thank you for the prompt reply Antonio!

What should I be looking at though?

Image