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!

Problems with using tcl in a DLL

Status
Not open for further replies.

mattd2

Programmer
Mar 4, 2002
1
GB
Hi there,
I'm using tcl as a scripting language in my project, which is a DLL (win32). It links with a library file to load tcl's dll at loadtime. But when I use this DLL from another program (runtime) it loads it fine, but on close, it freezes in the FreeLibrary() function. It only does this when i execute the following commands:
InChannel = Tcl_GetStdChannel(TCL_STDIN);
OutChannel = Tcl_GetStdChannel(TCL_STDOUT);
it closes fine without these commands. any ideas why this is? (sorry if this a stupid question, but i don't think i need to close the channels, do i?)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top