Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 718b4e0a0d38de61e41ff3bf65a000fff6b8c04b
Ticket: 858493ffffffffffffffffffffffffffffffffff
Win32: DllMain needs SEH around Tcl_Finalize()
User & Date: davygrvy on 2003-12-12 07:17:02
Changes

  1. icomment:
    Logged In: YES 
    user_id=7549
    
    Agreed, but 8.5 has the Tcl_Namespace problem in the Stubs 
    table and I find it too difficult to work with.  Even if I did 
    place the changes into the HEAD, I would be testing and 
    running the code in the 8.4 branch only.
    
    I'm finding some deeper problem in some of the exit handlers.  
    It looks like threads are halted and in 
    SocketThreadExitHandler for example is blocking on:
    
      WaitForSingleObject(tsdPtr->socketThread, INFINITE);
    
    Although the thread appears to be running, it isn't.  This 
    solves it:
    
        dwWait = WaitForSingleObject(tsdPtr->socketThread, 100);
        if (dwWait == WAIT_TIMEOUT) {
    /*
     * Avoids a lock-up, just in case it is needed from an
     * unclean exit condition when the thread appears
     * running, but isn't.
     */
    TerminateThread(tsdPtr->socketThread, 
    EXIT_FAILURE);
        }
    
    
    
  2. login: "davygrvy"
  3. mimetype: "text/plain"
  4. username: "davygrvy"