Skip to content
Tcl Source Code History Of Ticket 3427545fffffffff
Login

History Of Ticket 3427545fffffffff

Artifacts Associated With Ticket 3427545fffffffff

  1. Ticket change [9420339796] (rid 105931) by realmojo on 2011-10-23 14:09:30:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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"); 
      }
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "realmojo"
    10. subsystem initialized to: "None"
    11. title initialized to: "Tcl_CreateInterp() hangs"
    12. type initialized to: "Bug"
  2. Ticket change [37b77facfb] (rid 112078) by realmojo on 2011-10-23 21:11:00:

    1. foundin changed to: "obsolete: 8.5.10"
    2. priority changed to: "8"
  3. Ticket change [8ec7415268] (rid 120169) by realmojo on 2011-10-25 06:03:17:

    1. assignee changed to: "dgp"
  4. Ticket change [92cecdccd6] (rid 120839) by dgp on 2011-10-26 00:27:44:

    1. icomment:
      Don't know why my comment yesterday didn't appear..
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [80ce584634] (rid 116935) by dgp on 2011-10-26 00:34:00:

    1. icomment:
      
      Confirm that your Tcl library was built
      with --enable-threads.
      
      Use [tcl::pkgconfig get threaded] to test.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [5af47d3ec9] (rid 118235) by realmojo on 2011-10-26 23:24:19:

    1. icomment:
      Thanks dgp. It works now
      
      
    2. login: "realmojo"
    3. mimetype: "text/plain"
    4. username: "realmojo"
  7. Ticket change [c62ef4562d] (rid 121723) by realmojo on 2011-10-26 23:24:32:

    1. closedate changed to: "2011-10-26T16:24:32"
    2. closer changed to: "realmojo"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "realmojo"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "realmojo"