<i>Tcl_SetStringObj called with shared object</i> status still Open with 4 other changes
by
.
D 2008-06-12T11:19:11
J icomment Logged\sIn:\sYES\s\nuser_id=95086\nOriginator:\sNO\n\nI\spersonally\sdo\snot\scare\sas\slong\sas\sit\sworks.\sI\sbelieve\sthis\spattern\sis\sleft\nin\sthe\scode\sby\smistake\sas\sI\stried\sto\schange\sthat\sbehaviour\slong\stime\sago.\n\nAnd,\sI\shaven't\ssucked\sit\sout\sof\smy\sfinger.\sThis\sstood\s(perhaps\sstill\sstays)\nin\sthe\sTcl\sdocs\sas\sa\spreffered\sway\show\sto\shandle\sresult\sobject.\sDo\snot\sask\nme\swhere\sand\swhen\sI\sread\sthat.\sI\scan't\sremember.\sI\sjust\snow\sI\sread\sthat\nand\swrote\sit\saccodring\sto\sthe\srecomendation,\sjust\sto\sfind\sout\sthat\sthis\nbrought\slots\sof\sproblems\sdown\sthe\sroad.\sSo\sI\swholesale\schanged\sall\nmy\scode\sto\sscrap\sthose\sout.\sObviously\sin\sthe\sthreading\sextension\sthere\nare\splaces\swhere\sthis\sis\sstill\sused.\sI\swill\sgo\sthru\sand\sremove\sall\sthose\nparts.\s\n\nInstead\sof\s\nTcl_SetStringObj(Tcl_GetObjResult(interp),\sresultPtr->result,\s-1);\n\nit\swill\sread\nTcl_SetObjResult(interp,\sTcl_NewStringObj(resultPtr->result,\s-1));\n\nThe\soriginal\s"idea"\swas\sthat\sthe\sformer\sshould\ssave\sus\sthe\sneed\sto\ncreate\snew\sTcl_Obj\sas\sTcl\sresult\sshould\salready\spoint\sto\sa\sgood\sone.\nAnd\sthat\sone\sshould\snot\sbe\sshared.\sThis\sis\ssometimes\snot\strue\sfor\nwhatever\sreasons,\sI\sdo\snot\sknow.\n\nThanks\sfor\sthe\sreport.\s\nZoran\n\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 1988779fffffffffffffffffffffffffffffffff
U vasiljevic
Z a40e29006d36bfe1577d5503f3553f6c