Dne sobota 29. srpna 2020 v 8:05:12 UTC+2 uživatel Christian Gollwitzer napsal:
It's not, that package cannot be loaded. Problem is, that thread dies, even if is ordered to wait in event loop.
There, i've made screenshot of error:
https://photos.app.goo.gl/F8Df2q6DCvUbtALZ9
Code in my program is this
proc create_thread {} {
if {[info exists starkit::mode] && $starkit::mode ne "unwrapped"} {
set self $starkit::topdir
append data "vfs::mk4::Mount \"$self\" \"$self\" -readonly\n"
}
append data "set ::auto_path [list $::auto_path]\n"
append data "set vfs_path [list $starkit::topdir]\n"
append data "namespace eval ::starkit { variable topdir $self}\n"
append data "::tcl::tm::path add \{[file join $starkit::topdir tmlib]\}\n"
append data "thread::wait"
return [thread::create $data]
}
....
set worker_thread_id [create_thread]
....
thread::send $worker_thread_id {
...
}
First i create thread with some paths for VFS and put it to "wait". Then when i need to use this thread, thread is dead and error occurs.
As i said. On old 5.6.3 basekit, that worked. So i dont know if this problem is with my code. Or with this basekit.