Re: tcl - exec will block the main thread if not return on Windows
- From: "Gerald W. Lester" <Gerald.Lester@xxxxxxx>
- Date: Tue, 30 Oct 2007 07:41:15 -0500
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|
+------------------------------------------------------------------------+
.
- References:
- Prev by Date: Re: Standard DBI Proposal
- Next by Date: WebServices for Tcl 1.0.8 availiable
- Previous by thread: Re: tcl - exec will block the main thread if not return on Windows
- Next by thread: rotate tk canvas
- Index(es):
Relevant Pages
|