Re: tcl - exec will block the main thread if not return on Windows



Ron Fox wrote:
Works perfectly well for me. What version of Tcl/Tk are you
using. Is it ActiveTcl or your own build?

Also what version of Windows are you running?


Ron.

vian1381@xxxxxxxxxxxx wrote:
The exec manual said "To start an instance of notepad editing a file
without waiting for the user to finish editing the file: exec notepad
myfile.txt &", but I tried on my application, it throws an error that
"couldn't duplicate output handle: bad file number".
What's the problem?
On Unix, "exec vi myfile &" works well, I continue the operation on my
application without exiting vi.
On Windows, "exec notepad myfile.txt" will block my application, I
have to exit notepad before I can operate my application.
Does anyone know the reason?

Thanks in advance!

Vian



--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.



Relevant Pages