How to troubleshoot LoadLibrary() failure?

How to troubleshoot LoadLibrary() failure?

Postby hua » Tue Apr 20, 2021 8:21 am

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
hua
 
Posts: 1070
Joined: Fri Oct 28, 2005 2:27 am

Re: How to troubleshoot LoadLibrary() failure?

Postby Antonio Linares » Tue Apr 20, 2021 8:25 am

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
User avatar
Antonio Linares
Site Admin
 
Posts: 41940
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to troubleshoot LoadLibrary() failure?

Postby hua » Tue Apr 20, 2021 8:44 am

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
hua
 
Posts: 1070
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 19 guests

cron