Skip to content
Tcl Source Code History Of Ticket 218375ffffffffff
Login

History Of Ticket 218375ffffffffff

Artifacts Associated With Ticket 218375ffffffffff

  1. Ticket change [1ffd9519c6] (rid 91238) by nobody on 2000-10-26 00:56:50:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
      
    4. foundin initialized to: "obsolete: 8.2.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to:
      Fileevent never executes in tclsh82 - works in wish82
      
    11. type initialized to: "Bug"
  2. Ticket change [4a6a330e3b] (rid 126532) by welch on 2000-10-26 08:20:09:

    1. closedate changed to: "2000-10-26T01:20:09"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [2a25a8fda5] (rid 118503) by dgp on 2001-04-19 04:40:42:

    1. closedate changed to: "2001-04-18T21:40:42"
    2. closer changed to: "dgp"
    3. resolution changed to: "Invalid"
    4. subsystem changed to: "02. Event Loops"