Tcl Source Code

View Ticket
Login
Ticket UUID: 66aa81c90ac680085da28a45aeb3861103634b07
Title: MS-Windows+TCL9: if a load failes due to a missing secondary DLL, the error message says "No error".
Type: Bug Version: 9.0.0
Submitter: oehhar Created on: 2024-11-11 10:11:47
Subsystem: 17. Commands I-L Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2024-12-02 14:56:02
Resolution: None Closed By: nobody
    Closed on:
Description:

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

User Comments: dkf added on 2024-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!)


jan.nijtmans added on 2024-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


oehhar added on 2024-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.nijtmans added on 2024-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.

????