Skip to content
Tcl Source Code Artifact [139688c27b]
Login

Artifact [139688c27b]

Artifact 139688c27bf8868d9472f34965d82199f353f3d9:

Ticket change [139688c27b] - Ticket [1437595fffffffff|1437595fff] <i>WinSock cores/hangs on thread or app exit</i> status still Open with 4 other changes by dunkfan on 2006-09-29 18:28:08.
D 2006-09-29T18:28:08
J icomment Logged\sIn:\sYES\s\nuser_id=1183601\n\nFWIW\sI\shad\sa\shanging\sproblem\swith\s8.4.13\sXPSP2\safter\s\ncalling\sexit.\s\n\nTracked\sit\sdown\sto\stclwinsock.c\sWaitForSingleObject(tsdPtr-\n>readyEvent,\sINFINITE);\nin\sthe\sTclpFinalizeSockets()\scode...\n\nThen\sI\sincluded\sthe\scode\swhich\sused\sto\sbe\sin\sthere\s(from\s\n8.4.6)\sto\scheck\swhether\sthe\sthread\swas\sSTILL_ACTIVE\sbefore\s\njumping\sinto\sthe\sWait\scall.\n\nDWORD\sexitCode;\nGetExitCodeThread(tsdPtr->socketThread,\s&exitCode);\n\s\s\sif\s(exitCode\s==\sSTILL_ACTIVE)\s{\n\s\s\s\s\s\s\sif\s(tsdPtr->hwnd\s!=\sNULL)\s{\n\s\s\s\sPostMessage(tsdPtr->hwnd,\sSOCKET_TERMINATE,\s0,\s\n0);\n\s\s\s\s/*\n\s\s\s\s\s*\sWait\sfor\sthe\sthread\sto\sexit.\sThis\s\nensures\sthat\swe\sare\n\s\s\s\s\s*\scompletely\scleaned\sup\sbefore\swe\s\nleave\sthis\sfunction.\n\s\s\s\s\s*/\n\s\s\s\sWaitForSingleObject(tsdPtr-\n>readyEvent,\sINFINITE);\n\s\s\s\stsdPtr->hwnd\s=\sNULL;\n}\n\s\s\s\s}\n\nThat\sseems\sto\scure\sthe\sproblem...\n\n
J login dunkfan
J mimetype text/plain
J username dunkfan
K 1437595fffffffffffffffffffffffffffffffff
U dunkfan
Z 27976192fc052b2bf31205d7cd8bb87f