Overview
| Artifact ID: | 7a8cbe24c6c666b51c337af45e2d248f89660bc3 |
|---|---|
| Ticket: | 3475569fffffffffffffffffffffffffffffffff
Unexpected behavior / Panic / Tcl_Obj deletion management |
| User & Date: | sebres on 2012-01-19 01:29:27 |
Changes
- icomment:
please read carefully my example code. i know what shared object is. the exception resp. panic occured standalone in tcl core also, like call of this in freeIntRepProc (by DeletePending) : file normalize {D:\test\bin\..\modules\tcl\lib\tcl8.5\init.tcl}. in my example code (if you read carefully) ... before call of Tcl_SetObjLength(obj, 0) the refCount should be "1", and is "1" normally, but by DeletePending it is "2". Or you want to tell me - you write before each modification call this : <code> if (Tcl_IsShared(retVal)) { TclDecrRefCount(retVal); retVal = Tcl_DuplicateObj(retVal); TclIncrRefCount(retVal); } </code> I do it so, but only by object, which refCount i don't know. In my example refCount of "obj" should be definitely "1". Otherwise the tcl8.5 code should be also completelly revised. - login: "sebres"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "sebres"