Artifacts Associated With Ticket 218375
Ticket change [1ffd9519c6] (rid 91238) by nobody on 2000-10-26 00:56:50:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 4314 Bug Version: 8.2.2 SubmitDate: '2000-03-06' LastModified: '2000-03-10' Severity: MED Status: Closed Submitter: techsupp ChangedBy: ericm OS: Windows 95 FixedDate: '2000-10-25' ClosedDate: '2000-03-10' Name: David Graczyk ReproducibleScript: The following script works in wish82 but not in tclsh82. catch {set channelID [open COM2: r+]} if {[info vars channelID] == ""} { return } fconfigure $channelID -buffering line -mode 9600,N,8,1 -blocking 0 # COM2 is connected to a modem. # I call the moden line and observe # the RING message from the modem. fileevent $channelID readable { puts [read $channelID] } ObservedBehavior: The fileevent never executes in tclsh82. DesiredBehavior: I would expect tclsh to work as wish does. One key difference between wish and tclsh is that wish always starts an event loop, while tclsh normally does not. Because fileevents depend on an event loop to function, they will not work correctly in tclsh unless you takes steps to enable the event loop. Usually this is accomplished through the use of the "vwait" command. Try adding vwait forever to the end of your script. This will enable the event loop, and your fileevents should then be processed as you expect. See the manual page for vwait for more information. - eric -- 03/10/2000 ericm - foundin initialized to: "obsolete: 8.2.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to:
Fileevent never executes in tclsh82 - works in wish82
- type initialized to: "Bug"
Ticket change [4a6a330e3b] (rid 126532) by welch on 2000-10-26 08:20:09:
- closedate changed to: "2000-10-26T01:20:09"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [2a25a8fda5] (rid 118503) by dgp on 2001-04-19 04:40:42:
- closedate changed to: "2001-04-18T21:40:42"
- closer changed to: "dgp"
- resolution changed to: "Invalid"
- subsystem changed to: "02. Event Loops"