Skip to content
Tcl Source Code View Ticket
Login

View Ticket

MS-Windows+TCL9: if a load failes due to a missing secondary DLL, the error message says "No error".

Open66aa81c90ac680085da28a45aeb3861103634b07Created 2 years agoUpdated 2 years ago
Descriptionwiki2024-11-11 10:11:47
Hi TCL team,

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

oehhar Ticket [66aa81c90a]: 3 changes [History diff]2024-11-11 10:12:46
jan.nijtmanswiki2024-11-28 12:33:34

>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.

????

oehharwiki2024-11-28 13:24:28

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

jan.nijtmanswiki2024-11-28 13:46:56

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

dkfmarkdown2024-12-02 14:56:02

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!)

Log in (anonymous is fine) to add a comment.