How to troubleshoot LoadLibrary() failure?

Post Reply
hua
Posts: 1077
Joined: Fri Oct 28, 2005 2:27 am
Has thanked: 1 time
Been thanked: 1 time

How to troubleshoot LoadLibrary() failure?

Post 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
Last edited by hua on Tue Apr 20, 2021 8:28 am, edited 1 time in total.
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
User avatar
Antonio Linares
Site Admin
Posts: 42604
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 44 times
Been thanked: 88 times
Contact:

Re: How to troubleshoot LoadLibrary() failure?

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
hua
Posts: 1077
Joined: Fri Oct 28, 2005 2:27 am
Has thanked: 1 time
Been thanked: 1 time

Re: How to troubleshoot LoadLibrary() failure?

Post by hua »

Thank you for the prompt reply Antonio!

What should I be looking at though?

Image
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
Post Reply