Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query regarding parent-child processes using wish in tcl windows

Status
Not open for further replies.

adityai

Programmer
Aug 8, 2004
10
US
Hello,

I can successfully create child processes using wish83.exe in windows. When the child process exits, the parent process does not know that the child process did indeed exit. In my application, I need to let the parent process know that the child process exited, at the moment the child process exits.

Any suggestions?

 
How is the child process exiting? Is the user clicking something (that could be bound) or is the exit programmatic (that could be extended)? In either case, can you use "dde"?
SYNOPSIS
package require dde 1.2
dde servername ?topic?
dde execute ?-async? service topic ?data?
dde poke service topic item data
dde request ?-binary? service topic ?data?
dde services service topic ?data?
dde eval ?-async? service topic ?data?


DESCRIPTION
This command allows an application to send Dynamic Data Exchange (DDE) command when running under Microsoft Windows. Dynamic Data Exchange is a mechanism where applications can exchange raw data. Each DDE transaction needs a service name and a topic. Both the service name and topic are application defined; Tcl uses the service name TclEval, while the topic name is the name of the interpreter given by dde servername. Other applications have their own service names and topics. For instance, Microsoft Excel has the service name Excel.

or whatever equivalent on your platform?

_________________
Bob Rashkin
rrashkin@csc.com
 
Bong's suggestions are good..but I think you need something like twapi to grab the thread id , commit a join and, thus
synchronize threads.
Remember that in the modern win world everything is threaded
and the child/parent model is not really applicable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top