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

Tcl_CreateCommand failing!

Status
Not open for further replies.

panickedkernel

Programmer
Dec 15, 2000
2
US
all,
Im calling Tcl_CreateCommand to associate a string with a c function in a program of mine. the string is NOT a string constant (its in an array), and the function pointer that im passing is obviously in scope of the call to Tcl_CreateCommand. Heres the wierd part. The string gets associated with the function correctly, as i can call Tcl_Eval with a pointer to the interpreter, and the string, and the correct function will execute... however, my call to Tcl_CreateCommand fails with TCL_ERROR. can anyone tell ym why this is happening? its frustrating the hell out of me.

thanks

--lou
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top