Overview
| Artifact ID: | 1ffd9519c6379ca3f9b19b0d51ff250657483b7b |
|---|---|
| Ticket: | 218375ffffffffffffffffffffffffffffffffff
Fileevent never executes in tclsh82 - works in wish82 |
| User & Date: | nobody on 2000-10-26 00:56:50 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.2.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
Fileevent never executes in tclsh82 - works in wish82
- type changed to: "Bug"