Artifacts Associated With Ticket 672526ffffffffffffffffffffffffffffffffff
Ticket change [697a8a142c] (rid 103263) by gnoyer on 2003-01-22 16:11:24:
- assignee initialized to: "nijtmans"
- cmimetype initialized to: "text/plain"
- 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
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "gnoyer"
- subsystem initialized to: "02. Event Loops"
- title initialized to: "X11 event lost with popen."
- type initialized to: "Bug"
Ticket change [663ebb4344] (rid 102674) by gnoyer on 2003-01-22 23:15:03:
- icomment:
File Added - 40350: tst.tcl
- login: "gnoyer"
- mimetype: "text/plain"
- username: "gnoyer"
- icomment:
Add attachment "tst.tcl" [92a1ee6db2] (rid 120796) by gnoyer on 2003-01-22 23:15:03.
Ticket change [65baaa4040] (rid 102599) by hobbs on 2003-01-28 08:33:38:
- assignee changed to: "davygrvy"
- closedate changed to: "2003-01-28T01:33:38"
- closer changed to: "hobbs"
- 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?
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Works For Me"
- status changed to: "Pending"
- username: "hobbs"
Ticket change [639b8af9e5] (rid 92607) by davygrvy on 2003-01-28 16:00:16:
- 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.
- login: "davygrvy"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "davygrvy"
- icomment:
Ticket change [f70604ee9c] (rid 130417) by gnoyer on 2003-01-28 16:09:30:
- closedate changed to: "2003-01-28T09:09:30"
- closer changed to: "gnoyer"
- 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.
- login: "gnoyer"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "gnoyer"
Ticket change [b9be105ee6] (rid 129207) by gnoyer on 2003-01-28 16:22:32:
- 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.
- login: "gnoyer"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "gnoyer"
- icomment:
Ticket change [b08f0a3126] (rid 98003) by davygrvy on 2003-01-28 16:27:02:
- closedate changed to: "2003-01-28T09:27:02"
- closer changed to: "davygrvy"
- 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.
- login: "davygrvy"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "davygrvy"
Ticket change [d3d0051b1c] (rid 123349) by davygrvy on 2003-01-28 16:37:53:
- 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?
- login: "davygrvy"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "davygrvy"
- icomment:
Ticket change [e0d0eb1536] (rid 87345) by gnoyer on 2003-01-28 17:34:42:
- 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.
- login: "gnoyer"
- mimetype: "text/plain"
- username: "gnoyer"
- icomment:
Ticket change [567b65acc7] (rid 94325) by davygrvy on 2003-01-29 07:15:30:
- 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?
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [07e0651b1b] (rid 89482) by gnoyer on 2003-01-29 19:05:19:
- 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.
- login: "gnoyer"
- mimetype: "text/plain"
- username: "gnoyer"
- icomment:
Ticket change [b0237b5430] (rid 97926) by davygrvy on 2003-01-30 04:45:07:
- closedate changed to: "2003-01-29T21:45:07"
- closer changed to: "davygrvy"
- 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
- login: "davygrvy"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "davygrvy"
Ticket change [6053ba2380] (rid 115976) by gnoyer on 2003-02-05 17:11:50:
- closedate changed to: "2003-02-05T10:11:50"
- closer changed to: "gnoyer"
- subsystem changed to: "04. Async Events"