Problem with Threads and starpack
- From: "Scott" <sgargash@xxxxxxxxxxx>
- Date: 28 Dec 2006 14:42:46 -0800
When using the most recent ActiveState release (8.4.14) on Windows, I
can no longer access files in a VFS from a child thread.
Here's a simple test case (test.vfs/main.tcl):
package require starkit
starkit::startup
package require Thread
puts [pwd]
thread::create {cd [info nameofexecutable]}
after 1000
puts [pwd]
If I turn that into a starpack with 8.4.14, I get:
C:/home/scottg/tmp/test1
Error from thread tid000000D0
couldn't change working directory to
"c:/home/scottg/tmp/test1/test.exe": no such file or directory
while executing
"cd [info nameofexecutable]"
C:/home/scottg/tmp/test1
whereas with an older ActiveState release (8.4.13), I get:
C:/home/scottg/tmp/test1
C:/home/scottg/tmp/test1/test.exe
I saw in an older thread
(http://groups.google.com/group/comp.lang.tcl/browse_frm/thread/af1e1f3d472b9946)
that there were thread safety issues in the vfs code, but that this had
been fixed. Is there now something new that needs to be done to allow
the child thread access to the VFS?
.
- Prev by Date: Re: How to use list effectively?
- Next by Date: Re: Improving i18n support (Was: Re: Christmas
- Previous by thread: How to use list effectively?
- Next by thread: images in menus not quite right
- Index(es):