|
2024-12-02
| ||
| 14:56 | • Ticket [66aa81c90a] MS-Windows+TCL9: if a load failes due to a missing secondary... artifact: 52368fe2f5 user: dkf | |
|
2024-11-28
| ||
| 13:46 | • Ticket [66aa81c90a]: 3 changes artifact: 9578ed780d user: jan.nijtmans | |
| 13:24 | • Ticket [66aa81c90a]: 4 changes artifact: 63881caf4e user: oehhar | |
| 12:33 | • Ticket [66aa81c90a]: 3 changes artifact: dade1300a0 user: jan.nijtmans | |
|
2024-11-11
| ||
| 10:12 | • Ticket [66aa81c90a]: 3 changes artifact: 729d92bff0 user: oehhar | |
| 10:11 | • New ticket [66aa81c90a]. artifact: 50e4187732 user: oehhar | |
MS-Windows+TCL9: if a load failes due to a missing secondary DLL, the error message says "No error".
I try to port tclwmf by MrAndrowish to TCL9. The resulting tclwmf.dll depends on jpeglib.dll. If this secondary dll is not in the path, the error message is:
% package require tclwmf couldn't load library "C:/.../tclwmf0.1/tcl9tclwmf01.dll": No error
The same with TCL 8.6.14 gives:
% package require tclwmf couldn't load library "C:/.../tclwmf0.1/tclwmf01t.dll": this library or a dependent library could not be found in library path
So, the error message is now "No error" what is less helpful.
Thanks for all, Harald
>tclsh90 % load ./tcl9memorymoduletest.dll couldn't load library "./tcl9memorymoduletest.dll": this library or a dependent library could not be found in library path
Just stumbled on this. Comparing tclWinLoad.c from 9.0 with 8.6, I don't see any fundamental changes.
????
Jan, thanks for looking into this.
The issue arises only, if the library "test.dll" loaded by "load test.dll" is present, but "test.dll" requires another dll and this dll is not present.
This is on Windows 64, compiled with MS-VS 2015 32 bit.
THank you, Harald
In my case, it was Win64 compiled with gcc. tcl9memorymoduletest.dll depends on libgcc_s_seh-1.dll, which was not present.
Something is going on
Looks like this SO question's answer might be relevant. I'm not sure if it will be perfect, but it at least stands a chance of giving some debugging info to users where there was previously none... (Damnable internal APIs!)