Menu

#177 "package require twapi" fails with empty error message

Unscheduled
open
fixed-4.3.6 (4)
Bug
1
2021-05-03
2019-06-20
No

Ashok,

thank you for twapi. I have a strange phenomenon.

  • twapi 8.3.5 is copied to the lib folder of a self-compiled tcl 32 bit.
  • starting wish and typing "package require twapi" results in "8.3.5" and no error.
  • After a long program initialisation with the same wish and twapi, I get a raised error with an empty error message on twapi package require:
% catch {package require twapi} err
1
% set err
% 

Do you have any idea where to search for the issue ?

Thank you,
Harald

Discussion

<< < 1 2 (Page 2 of 2)
  • Ashok P. Nadkarni

    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

     
  • Anonymous

    Anonymous - 2021-04-30

    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

     
  • Ashok P. Nadkarni

    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?

     
  • Anonymous

    Anonymous - 2021-05-03

    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

     
<< < 1 2 (Page 2 of 2)

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB