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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C and Tcl/Tk

Status
Not open for further replies.

Anto35

Technical User
May 16, 2002
25
FR
Hi!

well, I've got a C application with an MMI in Tcl/Tk. I have to send many string from my C application to the Tcl. To do this I use some function such as Tcl_Eval , Tcl_SetResult, or Tcl_AppendResult. It works great but anything is return to Tcl interpreter until the C function isn't finish and return TCL_OK or stuff like this.

So because I've got many string to print on my MMI, I want to send them gradually and don't wait the end of the process to see all the string printed on my MMI.

I try to use the fork command (with semaphore to manage acces to the widget where the string is printed), but when I do this an X server error occured (a very bad one!).

Thanx for your answers.
Anto.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top