"package require twapi" fails with empty error message
Brought to you by:
apnadkarni
Ashok,
thank you for twapi. I have a strange phenomenon.
% catch {package require twapi} err
1
% set err
%
Do you have any idea where to search for the issue ?
Thank you,
Harald
Anonymous
Wolfgang, please try https://sourceforge.net/projects/twapi/files/Development%20Releases/twapi-4.5a3.zip/download
Replace the twapi directory with the above one (make sure original is nowhere in env(PATH) and auto_path)
Note this will not fix the problem but at least verify it is the same as Harald's case and then we can may be look at how to work around if at all possible either way.
/Ashok
Ashok
The new version seems working also on my setup.
Note, I have two versions of our debugtool installed on my computer v2_2_2 and v2_2_4.
old version:
% source "C:/Program Files (x86)/debugtool/Lab_v2_2_1/tcl860lib/init-all.tcl"
Correct initialization of tcl-functions at 2021-04-30, 07:15:41.
% catch {package require twapi} err
1
% AlPrint $err
%
new version (twapi-4.5a3.zip)
% source "C:/Program Files (x86)/debugtool/Lab_v2_2_4/tcl860lib/init-all.tcl"
Correct initialization of tcl-functions at 2021-04-30, 07:15:00.
% catch {package require twapi} err
1
% AlPrint $err
Could not initialize COM. Der Threadmodus kann nicht nach dem Einstellen geändert werden.
%
Wolfgang
Ok, so this is the same issue as Harald's. That is good news only in the sense that now we know what the problem is. The bad news is that there is seemingly no solution except to get twapi to load before the application initializes its thread pool and see if that works. Do Tcl and twapi ship with that application?
No the applictaion initially did not had the twapi libary, so I guess noone tried before.
In fact I just try to enlarge the possibility for my scriptings as I already did with the TCOM library.
Wolfgang