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

History Of Ticket 672526ffffffffff

Artifacts Associated With Ticket 672526ffffffffff

  1. Ticket change [697a8a142c] (rid 103263) by gnoyer on 2003-01-22 16:11:24:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Hello 
      
        I have a problem on Windows XP and tcl 8.4.1
        The application is not refreshed after the end of an 
      other application lauched with  the popen function.
        Moving the windows refresh the windows and permit to 
      work again.
        The little sample show the problem.
        Click on the click button. This open notepad move the 
      window notepad. Closing notepad not refresh the tcl 
      windows and the application is not available.
        This problem is done on a lot of Windows XP stations.
        The problem is only in Windows XP and look like an 
      X11 event problem.
      
        Thanks a lot.
      Gilles Noyer
      
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "gnoyer"
    9. subsystem initialized to: "02. Event Loops"
    10. title initialized to: "X11 event lost with popen."
    11. type initialized to: "Bug"
  2. Ticket change [663ebb4344] (rid 102674) by gnoyer on 2003-01-22 23:15:03:

    1. icomment:
      
      
      File Added - 40350: tst.tcl
      
      
      
    2. login: "gnoyer"
    3. mimetype: "text/plain"
    4. username: "gnoyer"
  3. Add attachment "tst.tcl" [92a1ee6db2] (rid 120796) by gnoyer on 2003-01-22 23:15:03.

  4. Ticket change [65baaa4040] (rid 102599) by hobbs on 2003-01-28 08:33:38:

    1. assignee changed to: "davygrvy"
    2. closedate changed to: "2003-01-28T01:33:38"
    3. closer changed to: "hobbs"
    4. icomment:
      Logged In: YES 
      user_id=72656
      
      I tried this on Win2K and WinXP using the TDK2.5beta 
      version of Tcl (8.4.1+) and don't have any problems.  Has 
      anyone seem something similar?
      
      
    5. login: "hobbs"
    6. mimetype: "text/plain"
    7. resolution changed to: "Works For Me"
    8. status changed to: "Pending"
    9. username: "hobbs"
  5. Ticket change [639b8af9e5] (rid 92607) by davygrvy on 2003-01-28 16:00:16:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      in the test script is this line:
         set fid [open "| notepad" r ]
      
      As notepad.exe does not write nor read anything to the 
      standard channels that where provided to it by Tcl in 
      notepad's STARTUPINFO when it was launched, I don't 
      understand why pipes are being used for this.
      
      Normally when a process is launched from wish, it is launch 
      in a hidden and detached console (hides the new console 
      window that would be blank anyway due to the redirection).  
      But as notepad.exe is a GUI application, it comes to the 
      foreground (not attached to the hidden console window) 
      because it runs in the windows subsystem not the console 
      subsystem.
      
      Gilles, could you explain the problem a bit more?  Where is 
      popen()?  In Tcl it is TclpCreateProcess(), but are you refering 
      to something different?  Was notepad used just as a universal 
      example, but the problem for you is with a different 
      application?  Could a "launch" command that provides a 
      different behavior without the pipe misunderstanding be more 
      what you desire?  I'm actually surprised that [gets] is not 
      blocking for you (or me).
      
      IMHO, the fact that tcl can knowing launch a GUI application 
      and has the nerve to set pipes to it, is a bad behavior.  Tcl 
      read the PE header in ApplicationType(), so it could have 
      grabbed the subsystem bit to see that it is GUI.  One day, I 
      would to see this changed.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "davygrvy"
  6. Ticket change [f70604ee9c] (rid 130417) by gnoyer on 2003-01-28 16:09:30:

    1. closedate changed to: "2003-01-28T09:09:30"
    2. closer changed to: "gnoyer"
    3. icomment:
      Logged In: YES 
      user_id=694494
      
      more precisions :
      This only a  XP problem.
      To reproduce the problem the tcl windows need to be covered 
      by the notepad window.
      This problem is solved by setting "Windows NT compatibility" 
      property flag to wish84.
      The problem is random, try 3 times on a PC.
      On some XP station I do not reproduce it.
      
      This look like the X11 main loop event.
      
      
    4. login: "gnoyer"
    5. mimetype: "text/plain"
    6. status changed to: "Pending"
    7. username: "gnoyer"
  7. Ticket change [b9be105ee6] (rid 129207) by gnoyer on 2003-01-28 16:22:32:

    1. icomment:
      Logged In: YES 
      user_id=694494
      
      Sorry, I called "popen" the little code :
        set fid [open "| notepad" r ]
      because in fact I want to open a GUI program having I/O to 
      the standard chanel.
      
      My application not use notepad but an other GUI program, 
      and I want to have the result in the standart output when it 
      finished.
      In the program the "gets" is used to get the result of the GUI 
      program. You are right in the sample it is not used.
      
      My application work fine on Windows NT and 2000 but not in 
      XP.
      
      
      I know that Microsoft change some event strategy on XP.
      
      
      
      
    2. login: "gnoyer"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "gnoyer"
  8. Ticket change [b08f0a3126] (rid 98003) by davygrvy on 2003-01-28 16:27:02:

    1. closedate changed to: "2003-01-28T09:27:02"
    2. closer changed to: "davygrvy"
    3. icomment:
      Logged In: YES 
      user_id=7549
      
      I can't reproduce it here, but I'll bet it's the call to [gets].  
      notepad doesn't use pipes.  And not until that blocking gets 
      call comes back does Tcl continue.  I'll bet money there is 
      nothing wrong with Tcl_DoOneEvent or it's child 
      Tcl_WaitForEvent.
      
      I recommend not using pipes to an application that doesn't 
      support pipes.
      
      
    4. login: "davygrvy"
    5. mimetype: "text/plain"
    6. status changed to: "Pending"
    7. username: "davygrvy"
  9. Ticket change [d3d0051b1c] (rid 123349) by davygrvy on 2003-01-28 16:37:53:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      Are you sure the GUI program supports pipes?  That's a very 
      odd mix.  Can you use [exec] instead?
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "davygrvy"
  10. Ticket change [e0d0eb1536] (rid 87345) by gnoyer on 2003-01-28 17:34:42:

    1. icomment:
      Logged In: YES 
      user_id=694494
      
      I tested with exec and the problem look like the same only 
      the frequency change to 3 times on 5 lauches instead of 4 
      timere on 5 lauches.
      I know that XP and 2000 are differents to manager X11 event.
      (ie the order is different and can cause some pbs) 
      I will ask more informations about this and post them.
      
      
      
    2. login: "gnoyer"
    3. mimetype: "text/plain"
    4. username: "gnoyer"
  11. Ticket change [567b65acc7] (rid 94325) by davygrvy on 2003-01-29 07:15:30:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      I don't know if the term "X11 event" is apporiate here as wish 
      recieves a WM_FOCUS from Win32's GetMessage() when 
      wish gets focus.  That should be how it works.  I do see 
      something odd in how notepad is launched active, yet wish's 
      titlebar doesn't go inactive.  I wonder what that's about?
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  12. Ticket change [07e0651b1b] (rid 89482) by gnoyer on 2003-01-29 19:05:19:

    1. icomment:
      Logged In: YES 
      user_id=694494
      
      I know that Windows XP have not the same strategy for 
      events between 2000 and XP
      In a smimilar application build on X11 and proted on Windows 
      we had the fololwing pb : 
      The WM_PAINT event is not send in the same time.
       It can send by InvalidateRec and can do an infinite loop 
      because it is send again by the InvalidRec.
      A strategy was to bufered it in the  WIndowProc and to 
      empty the list of buffered events in XNextEvent/GetMessage.
      
      Do you think you can have the same pbs with tcl/tk. 
      
      
      
      
    2. login: "gnoyer"
    3. mimetype: "text/plain"
    4. username: "gnoyer"
  13. Ticket change [b0237b5430] (rid 97926) by davygrvy on 2003-01-30 04:45:07:

    1. closedate changed to: "2003-01-29T21:45:07"
    2. closer changed to: "davygrvy"
    3. icomment:
      Logged In: YES 
      user_id=7549
      
      This bug needs to move to the tk project.  TK bugs don't go 
      here.  SF doesn't have the feature to move bugs to different 
      projects.  Could you copy it there?  Please don't use 'X11 
      event' in the title as this appears to be a Win32 message 
      handling issue.
      
      https://sourceforge.net/tracker/?
      func=add&group_id=12997&atid=112997
      
      
    4. login: "davygrvy"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "davygrvy"
  14. Ticket change [6053ba2380] (rid 115976) by gnoyer on 2003-02-05 17:11:50:

    1. closedate changed to: "2003-02-05T10:11:50"
    2. closer changed to: "gnoyer"
    3. subsystem changed to: "04. Async Events"