Skip to content
Tcl Source Code Artifact [5b948c5778]
Login

Artifact [5b948c5778]

Artifact 5b948c5778fa26ce278b1211d7f956bc398c115b:

Ticket change [5b948c5778] - Closed ticket [1589794fffffffff|1589794fff]: <i>Memory leaks with TCL_THREADS</i> plus 7 other changes by vasiljevic on 2007-06-30 21:02:31.
D 2007-06-30T21:02:31
J closedate 2007-06-30T14:02:31
J closer vasiljevic
J icomment Logged\sIn:\sYES\s\nuser_id=95086\nOriginator:\sNO\n\nAllright.\sThe\schange\syou\smade\swas\shelping\sin\s\nthe\scase\sTcl_Init\sand\sTcl_Finalize\sare\snot\sdone\nin\sthe\ssame\sthread.\s\n\nNormally\sTcl_Init\sand\sTcl_Finalize\sshould\sbe\scalled\nfrom\sthe\ssame\sthread\s(the\smain\sstartup\sthread)\nwhich\sis\sthe\sfirst\sthread\sin\syour\sprocess.\sSo\sthe\s\nfirst\sthread\sshould\sload\sand\sinit\sthe\sTcl\slibrary\sand\nit\sis\sthis\sone\sthread\sthat\sneeds\sto\sfinalize\sand\sunload\nthe\sTcl\slibrary.\sYou\scannot\sdelegate\sthis\sto\ssome\sother\nthread.\nYep,\sthis\sis\snot\sa\ssign\sof\sa\sgood\sdesign\sand\shas\nquite\sa\sfew\sof\sside-effects\slike:\syou\smust\ssomehow\nterminate\sall\sthreads\susing\sTcl\slib\sbefore\syour\smain\nthread\sthat\sloaded/inited\sTcl\slib\sexists.\nBut\sthat's\sthe\sway\sit\sis\snow;\schanging\sthis\swould\s\nrequire\sa\smajor\slibrary\srewrite\swhich\sis\sexpensive.\s\nFor\sthe\stime\sbeing\syou\sshould\salways\spay\sattention\nto\sload\sand\sfinalize\sTcl\slibrary\sin\sthe\ssame\s(preferably\s\nstartup)\sthread.\n\nCheers\nZoran\n
J login vasiljevic
J mimetype text/plain
J resolution Wont\sFix
J status Closed
J username vasiljevic
K 1589794fffffffffffffffffffffffffffffffff
U vasiljevic
Z 08824c96c5a6e9266aa4879a9f354182