Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a36e60bc66e984f71581b11d5e249c6a7832f6cb
Ticket: 1437595fffffffffffffffffffffffffffffffff
WinSock cores/hangs on thread or app exit
User & Date: vasiljevic on 2006-03-15 03:29:36
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    David, 
    
    You are speaking of some email where  you explained
    the problem. Where did you send it? I never got any such email!
    
    All I got was your response on this thread in Bug tracker. 
    Hence I had to ask what's wrong. You would do the same,
    wouldn't you? I believe we have some comm problem here...
    
    I'm quoting: 
    It waits for the async notification window to be in a ready state for use
    by WSAAsyncSelect. If it really is taking over 20 seconds to
    create a window in a thread, something else is wrong. 
    
    
    WHAT else is wrong? Is this system (Window) so undeterministic?
    I asked once. I'm asking once again:
    
           tsdPtr->hwnd = CreateWindow("TclSocket", "TclSocket", 
        WS_TILED, 0, 0, 0, 0, NULL, NULL, windowClass.hInstance, arg);
    
    Is this call (CreateWindow) defined to return sometime?
    Can it block forever?
    If yes, for what reason i.e. under which circumstances? 
    If yes, is the system usabe any more after that?
    Do you have a situation where you can simply 
    and easily reproduce it? 
    
    I have read the function specs in MSDN and there is 
    nothing about that call blocking indefinitely.
    
    I decided to block there instead of go over it. I would 
    like to know WHY the app blocks there! It is so simple
    to put a timeout there and abandon but this is not buying
    you anything and will most probably hang somewhere else.
    
    If the CreateWindow is known to block indefinitely, then
    why has anybody created such a poor implementation 
    at all in the first place? If it is so, then it has to be re-written.
    I never solve any such problems by brute-force (which the
    timeout at THAT place definitely is). And I have good reasons
    to follow that mantra.
    
    So: once again: can CreateWindow block indefinitely? 
    If yes: when and why?
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"