Re: starkit, Thread, source, vfs



Krys wrote:
I have a problem with Starpack. I create a starkit, which has:
3 files
1th files - create 3 threads and source 2-nd file
2-nd file - sources a 50 files
Each threads(with main program) source 2-nd file and call function form
2-nd file.
My application crash few seconds after start - System Error
(Windows), breach memory (Linux). This is not repeatability wrong.
This application is correct, if i run in standard tcl (no tclkit).
I try use: my tclkit, dqkit, basekit (ActiveState) [multithreading]

I think problem is source files in child Thread, but I don't sure...

My question
Is Metakit thread-safety ?
Is VFS thread-safety ?

The answer to the last is no. Tcl's core vfs is, but tclvfs was most certainly not, which is the basis for starkits. I have corrected this and the next release of ActiveTcl with basekits should work fine for you.

--

Jeff Hobbs, The Tcl Guy, http://www.activestate.com/
.