Changes in the CVS during the last week have caused Lotus 123 version 97
to fail with a 'dll not found' error.

The results of +debugmsg +module,+relay are below. Module
C:\lotus\compnent\lgln10.dll is initially loaded correctly, because the
path to the file is obtained from the registry. Then the program tries to
load main123w.dll, which has a dependency on lgln10.dll, but does not
notice that lgln10.dll is already loaded and tries to load it again using
only the name. As that file is not in the usual search path the load of
main123w.dll fails.

Dave Pickles


Call kernel32.348: GetModuleFileNameA(00000000,405d69e4,00000104) ret=0040135d fs=008f
trace:module:GetModuleFileNameA C:\lotus\123\123w.exe
Ret  kernel32.348: GetModuleFileNameA() retval=00000015 ret=0040135d fs=008f
Call kernel32.495: LoadLibraryA(405d6af4 "c:\\lotus\\compnent\\LGLN10.DLL") 
ret=0040160e fs=008f
trace:module:MODULE_GetLoadOrder looking for C:\lotus\compnent\lgln10.dll
trace:module:MODULE_GetLoadOrder Looking for 'C:\lotus\compnent\lgln10.dll' 
(C:\lotus\compnent\lgln10), found '<nothing>'
trace:module:MODULE_LoadLibraryExA Trying native dll 'C:\lotus\compnent\lgln10.dll'
trace:module:PE_LoadImage loading C:\lotus\compnent\lgln10.dll
trace:module:map_image mapped PE file at 0x15400000-0x15427000
trace:module:map_image mapping section .text at 0x15401000 off 400 size 18800 flags 
60000020
trace:module:map_image mapping section .rdata at 0x1541a000 off 18c00 size 3400 flags 
40000040
trace:module:map_image mapping section .data at 0x1541e000 off 1c000 size 2800 flags 
c0000040
trace:module:map_image clearing 0x15420800 - 0x15421000
trace:module:map_image mapping section .idata at 0x15423000 off 1e800 size e00 flags 
40000040
trace:module:map_image mapping section .rsrc at 0x15424000 off 1f600 size 400 flags 
40000040
trace:module:map_image mapping section .reloc at 0x15425000 off 1fa00 size 1200 flags 
42000040
trace:module:GetModuleFileNameA C:\lotus\123\123w.exe
trace:module:MODULE_LoadLibraryExA Already loaded module 
'C:\WINDOWS\SYSTEM\USER32.dll' at 0x40720000, count=7, 
trace:module:GetModuleFileNameA C:\lotus\123\123w.exe
trace:module:MODULE_LoadLibraryExA Already loaded module 'C:\WINDOWS\SYSTEM\GDI32.dll' 
at 0x407c9000, count=5, 
trace:module:GetModuleFileNameA C:\lotus\123\123w.exe
trace:module:MODULE_LoadLibraryExA Already loaded module 
'C:\windows\system\msvcrt40.dll' at 0x10200000, count=5, 
trace:module:GetModuleFileNameA C:\lotus\123\123w.exe
trace:module:MODULE_LoadLibraryExA Already loaded module 
'C:\WINDOWS\SYSTEM\KERNEL32.dll' at 0x4046b000, count=17, 
trace:module:MODULE_LoadLibraryExA Loaded module 'C:\lotus\compnent\lgln10.dll' at 
0x15400000, 
trace:module:MODULE_DllProcessAttach (lgln10.dll,(nil)) - START
trace:module:MODULE_InitDLL (lgln10.dll,PROCESS_ATTACH,(nil)) - CALL
trace:relay:PE_InitDLL CallTo32(entryproc=0x154195d0,module=15400000,type=1,res=(nil))
Call kernel32.427: GetVersion() ret=1541946f fs=008f
Ret  kernel32.427: GetVersion() retval=c0000004 ret=1541946f fs=008f
Call kernel32.459: HeapAlloc(40d80000,00000000,00000080) ret=102159d4 fs=008f
Ret  kernel32.459: HeapAlloc() retval=40d81640 ret=102159d4 fs=008f
Call kernel32.189: DisableThreadLibraryCalls(15400000) ret=1541969b fs=008f
Ret  kernel32.189: DisableThreadLibraryCalls() retval=00000001 ret=1541969b fs=008f
trace:module:MODULE_InitDLL (0x40372918,PROCESS_ATTACH,(nil)) - RETURN 1
trace:module:MODULE_DllProcessAttach (lgln10.dll,(nil)) - END
Ret  kernel32.495: LoadLibraryA() retval=15400000 ret=0040160e fs=008f
Call kernel32.495: LoadLibraryA(004034dc "main123w") ret=0040173c fs=008f
trace:module:GetModuleFileNameA C:\lotus\123\123w.exe
trace:module:MODULE_GetLoadOrder looking for C:\lotus\123\main123w.dll
trace:module:MODULE_GetLoadOrder Looking for 'C:\lotus\123\main123w.dll' 
(C:\lotus\123\main123w), found '<nothing>'
trace:module:MODULE_LoadLibraryExA Trying native dll 'C:\lotus\123\main123w.dll'
trace:module:PE_LoadImage loading C:\lotus\123\main123w.dll
trace:module:map_image mapped PE file at 0x3b00000-0x3e00000
trace:module:map_image mapping section .text at 0x3b01000 off 400 size 248200 flags 
60000020
trace:module:map_image mapping section .rdata at 0x3d4a000 off 248600 size 76a00 flags 
40000040
trace:module:map_image mapping section .data at 0x3dc1000 off 2bf000 size b600 flags 
c0000040
trace:module:map_image clearing 0x3dcc600 - 0x3dcd000
trace:module:map_image mapping section .idata at 0x3dd2000 off 2ca600 size 2e00 flags 
40000040
trace:module:map_image mapping section CODE32 at 0x3dd5000 off 2cd400 size 400 flags 
c0000040
trace:module:map_image mapping section .rsrc at 0x3dd6000 off 2cd800 size a00 flags 
40000040
trace:module:map_image mapping section .reloc at 0x3dd7000 off 2ce200 size 28e00 flags 
42000040
trace:module:GetModuleFileNameA C:\lotus\123\123w.exe
trace:module:MODULE_LoadLibraryExA Already loaded module 
'C:\WINDOWS\SYSTEM\USER32.dll' at 0x40720000, count=8, 
trace:module:GetModuleFileNameA C:\lotus\123\123w.exe
trace:module:MODULE_LoadLibraryExA Already loaded module 'C:\WINDOWS\SYSTEM\GDI32.dll' 
at 0x407c9000, count=6, 
trace:module:GetModuleFileNameA C:\lotus\123\123w.exe
trace:module:MODULE_LoadLibraryExA Already loaded module 
'C:\windows\system\msvcrt40.dll' at 0x10200000, count=6, 
trace:module:GetModuleFileNameA C:\lotus\123\123w.exe
trace:module:MODULE_GetLoadOrder looking for C:\WINDOWS\SYSTEM\LGLN10.dll
trace:module:MODULE_GetLoadOrder Looking for 'C:\WINDOWS\SYSTEM\LGLN10.dll' (LGLN10), 
found '<nothing>'
trace:module:MODULE_LoadLibraryExA Trying native dll 'C:\WINDOWS\SYSTEM\LGLN10.dll'
trace:module:MODULE_LoadLibraryExA Trying built-in 'C:\WINDOWS\SYSTEM\LGLN10.dll'
warn:module:BUILTIN32_dlopen failed to load liblgln10.so: liblgln10.so: cannot open 
shared object file: No such file or directory
trace:module:MODULE_LoadLibraryExA Trying elfdll 'C:\WINDOWS\SYSTEM\LGLN10.dll'
warn:module:BUILTIN32_dlopen failed to load liblgln10.so: liblgln10.so: cannot open 
shared object file: No such file or directory
trace:module:MODULE_LoadLibraryExA Trying so-library 'C:\WINDOWS\SYSTEM\LGLN10.dll'
warn:module:BUILTIN32_dlopen failed to load liblgln10.so: liblgln10.so: cannot open 
shared object file: No such file or directory
warn:module:MODULE_LoadLibraryExA Failed to load module 
'C:\WINDOWS\SYSTEM\LGLN10.dll'; error=0x00000002, 
err:module:fixup_imports Module (file) LGLN10.dll needed by C:\lotus\123\main123w.dll 
not found
err:win32:PE_LoadLibraryExA can't load C:\lotus\123\main123w.dll
warn:module:MODULE_LoadLibraryExA Failed to load module 'C:\lotus\123\main123w.dll'; 
error=0x0000000e, 
Ret  kernel32.495: LoadLibraryA() retval=00000000 ret=0040173c fs=008f

Reply via email to