Skip to content
Tcl Source Code History Of Ticket 1029907
Login

History Of Ticket 1029907

Artifacts Associated With Ticket 1029907

  1. Ticket change [1a455db901] (rid 122948) by aotto1968 on 2004-09-17 14:52:28:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.4.7"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "aotto1968"
    9. subsystem initialized to: "02. Event Loops"
    10. title initialized to: "differences win32 vs unix"
    11. type initialized to: "Bug"
  2. Ticket change [3d428aba89] (rid 121061) by aotto1968 on 2004-09-20 21:12:54:

    1. closedate changed to: "2004-09-20T14:12:54"
    2. closer changed to: "aotto1968"
    3. icomment:
      Logged In: YES 
      user_id=1030114
      
      the BUG was the guy sitting in front of the computer ;-( 
      the reason was that 'Tcl_CreateEventSource' was not available at the  
      tine the bug has happen. The bug only happen for TCP-Network 
      communication which was !!NOT!! tested for UNIX in my environment 
      (e.g. ToDo for me) 
       
      mfg 
       
        aotto 
      
      
    4. login: "aotto1968"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "aotto1968"