Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1a455db9011eb6a05b828d7b8b85684e563c21a0
Ticket: 1029907fffffffffffffffffffffffffffffffff
differences win32 vs unix
User & Date: aotto1968 on 2004-09-17 14:52:28
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hi, 
     
      my environment >>>>>>>>>>>>>>>>>> 
    UNIX:Linux linux02 2.4.21-243-athlon #1 Thu Aug 12 
    15:24:15 UTC 2004 i686 athlon i386 GNU/Linux 
    WINDOWS: win xp 
     
     my problem >>>>>>>>>>>>>>>>>>>>> 
    a tcl 'C' extension register with 'Tcl_CreateEventSource' 
    a 'setupProc' and a 'checkProc' to handel my own events 
    -> ok 
    the event-source are winsock2 file-handels fully under 
    control of my extension and not known outside of my 
    application 
     
    during the execution of my extension I cal 
    'Tcl_DoOneEvent(TCL_ALL_EVENTS)' to start the eventloop 
    and wait for new events -> ok 
     
    now the differences>>>>>>>>>>>>>>>>>> 
    UNIX: after calling 'Tcl_DoOneEvent' the 'setupProc'  and 
    the 'checkProc'  of my own events are called and 
    everything went well -> ok 
     
    WINDOWS: after calling 'Tcl_DoOneEvent' neither 
    'setupProc' ar 'checkProc' was called  -> error  
    the appication seems to blocking 
     
    to solve the proble I have to call 
    'Tcl_DoOneEvent(TCL_ALL_EVENTS|TCL_DONT_WAIT)'  
    and call the 'setupProc' and the 'checkProc' by my own -> 
    bad 
     
    now the mystic >>>>>>>>>>>>>>>>>>>>>>> 
    if I add... 
    proc Ping {} { 
        after 1000 Ping 
        puts ping 
    } 
    Ping 
    and do not provide 'TCL_DONT_WAIT' 
    both 'setupProc'  and the 'checkProc' are called and 
    everything works well -> mystic 
     
    solution >>>>>>>>>>>>>>>>>>>>>>>>>> 
    1: on windows 'Tcl_CreateEventSource' does !!NOT!! really 
    add an event source 
    2: you need 'start' or 'activate' the event-processing by 
    using a USELESS timer-event  
     
    mfg 
     
      aotto 
     
    
  4. foundin changed to: "obsolete: 8.4.7"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "aotto1968"
  9. subsystem changed to: "02. Event Loops"
  10. title changed to: "differences win32 vs unix"
  11. type changed to: "Bug"