• 8.7a6 Tk in thread not found

    From ted brown@21:1/5 to All on Tue Nov 2 15:24:17 2021
    I'm unable to use Tk from a thread in 8.7a6. With 8.6 I don't have this problem.

    To test code in 8.7 I go to

    https://github.com/tcltk/tk/actions?query=workflow%3A%22Build+Binaries%22

    and grab a single file 64 bit binary, e.g.

    Wish 8.7a6 Windows single-file build

    Is this just an artifact of using these single file builds, or could
    this be some sort of 8.7 issue in general?

    ============================================


    (Desktop) 1 % set auto_path
    //zipfs:/app/tcl_library //zipfs:/app C:/Users/core5/lib //zipfs:/app/tk_library //zipfs:/app/tk_library/ttk

    (Desktop) 2 % package require Tk
    8.7a6

    (Desktop) 3 % lappend auto_path {C:\tclf\tclpkgs64\thread2.8.6}

    //zipfs:/app/tcl_library //zipfs:/app C:/Users/core5/lib //zipfs:/app/tk_library //zipfs:/app/tk_library/ttk {C:\tclf\tclpkgs64\thread2.8.6}

    (Desktop) 4 % package require Thread
    2.8.6

    (Desktop) 5 % thread::create {thread::wait}
    tid00000000000031EC

    (Desktop) 6 % thread::send tid00000000000031EC {set auto_path} //zipfs:/app/tcl_library //zipfs:/app C:/Users/core5/lib


    At this point a package require Tk will fail. So, I thought maybe....

    (Desktop) 7 % thread::send tid00000000000031EC {lappend auto_path //zipfs:/app/tk_library //zipfs:/app/tk_library/ttk {C:\tclf\tclpkgs64\thread2.8.6}}

    //zipfs:/app/tcl_library //zipfs:/app C:/Users/core5/lib //zipfs:/app/tk_library //zipfs:/app/tk_library/ttk {C:\tclf\tclpkgs64\thread2.8.6}

    (Desktop) 8 % thread::send tid00000000000031EC {package require Tk}
    can't find package Tk


    So, it still fails. Any ideas?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)