Overview
| Artifact ID: | 37f3eba8775bf744cf50034ccaf93ff8d841a5c5 |
|---|---|
| Ticket: | 027ba061a8aac869441267c2aef4c4bf9c705c10
Standard channels do not exist on new threads on Windows |
| User & Date: | anonymous on 2014-09-26 06:28:17 |
Changes
- icomment:
Aku, I am not able to reproduce with tclsh.exe, the behaviour appears only with wish.exe, either introducing the commands in the console or sourcing a script. The runs in the original ticket was from Wish 8.6.1 and Thread 2.7.0. The runs on this comment uses Wish 8.5.14 and Thread 2.6.7. Dgp, I will be able to try it with Tcl 8.6.2 and Thread 2.7.1 in the next few days. Thank you for your answers. ~~~ (tmp) 1 % puts $::tcl_patchLevel; 8.5.14 (tmp) 2 % parray ::tcl_platform; ::tcl_platform(byteOrder) = littleEndian ::tcl_platform(machine) = intel ::tcl_platform(os) = Windows NT ::tcl_platform(osVersion) = 6.1 ::tcl_platform(platform) = windows ::tcl_platform(pointerSize) = 4 ::tcl_platform(threaded) = 1 ::tcl_platform(user) = prs ::tcl_platform(wordSize) = 4 (tmp) 3 % package require Thread; 2.6.7 (tmp) 4 % ::chan names; stdout stderr stdin (tmp) 5 % set tid [::thread::create { ::thread::wait; }]; tid000016F4 (tmp) 6 % ::thread::send $tid { ::chan names; }; (tmp) 7 % ~~~ Follows a script for non-interactive sourcing: ~~~ package require Thread; set tid [::thread::create { ::thread::wait; }]; ::pack [::ttk::label .l[incr i] -text "Patchlevel: $::tcl_patchLevel"]; ::pack [::ttk::label .l[incr i] -text "Platform: [array get ::tcl_platform]"]; ::pack [::ttk::label .l[incr i] -text "Main thread chans: [::chan names]"]; ::pack [::ttk::label .l[incr i] -text "Other thread chan names: [::thread::send $tid { ::chan names; }]"]; ::pack [::ttk::label .l[incr i] -text "Other thread file chans: [::thread::send $tid { ::file channels; }]"]; ~~~ - login: "anonymous"
- mimetype: "text/plain"