Artifacts Associated With Ticket 3427545fffffffffffffffffffffffffffffffff
Ticket change [9420339796] (rid 105931) by realmojo on 2011-10-23 14:09:30:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Dear all, I try to integrate tcl interpreter into my C++ program, but when I call Tcl_CreateInterp() 3rd times in a new thread, it hangs. This problem only occurs in tcl85.dll. when I change to tcl83.dll, this problem disappeared. Here is my code. Thank you for help #include <afxwin.h> #include "tcl.h" #include <iostream> #include <process.h> using namespace std; DWORD WINAPI TclThread(LPVOID) { Tcl_Interp *interp = Tcl_CreateInterp(); cout << " exit TclThread " << endl; return 0; } int main(int argc, char *argv[]) { for (int i = 0; i < 3; i++) { unsigned long p; CreateThread(NULL, 0, TclThread, NULL, 0, &p); Sleep(2000); } system("pause"); } - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "realmojo"
- subsystem initialized to: "None"
- title initialized to: "Tcl_CreateInterp() hangs"
- type initialized to: "Bug"
Ticket change [37b77facfb] (rid 112078) by realmojo on 2011-10-23 21:11:00:
- foundin changed to: "obsolete: 8.5.10"
- priority changed to: "8"
Ticket change [8ec7415268] (rid 120169) by realmojo on 2011-10-25 06:03:17:
- assignee changed to: "dgp"
Ticket change [92cecdccd6] (rid 120839) by dgp on 2011-10-26 00:27:44:
- icomment:
Don't know why my comment yesterday didn't appear..
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [80ce584634] (rid 116935) by dgp on 2011-10-26 00:34:00:
- icomment:
Confirm that your Tcl library was built with --enable-threads. Use [tcl::pkgconfig get threaded] to test.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [5af47d3ec9] (rid 118235) by realmojo on 2011-10-26 23:24:19:
- icomment:
Thanks dgp. It works now
- login: "realmojo"
- mimetype: "text/plain"
- username: "realmojo"
- icomment:
Ticket change [c62ef4562d] (rid 121723) by realmojo on 2011-10-26 23:24:32:
- closedate changed to: "2011-10-26T16:24:32"
- closer changed to: "realmojo"
- icomment:
allow_comments - 1
- login: "realmojo"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "realmojo"