Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d38e387cba21621602f4c47540901a5069ab3208
Ticket: 3532258fffffffffffffffffffffffffffffffff
Trying to increment refCount of previously disposed object
User & Date: jhexan on 2012-06-21 21:31:00
Changes

  1. icomment:
    I also tried to avoid using that m_tablePaths array, and this seemed to avoid the crash while running the script. However, a similar crash happened when I stopped the script and tried to destroy the itcl object and m_tablePaths, which I think narrows the problem to only this array.
    
    This is what the tcl code surrounding m_tablePaths looks like:
    
    itcl::class ItableMgr \
    {
    private variable m_tablePaths
    
    itcl::body ItableMgr::AddTable { tableId} \
    {
    ...
    set m_tablePaths($tableId) $tablePath
    ...
    }
    
    itcl::body ItableMgr::DestroyRow { row {tableId 0} } \
    {
    ...
    pdb::DestroyRow $m_tablePaths($tableId) $row
    ...
    }
    
    itcl::body ItableMgr::CreateRow { row {tableId 0} } \
    {
    ...
    pdb::CreateRow $m_tablePaths($tableId) $row
    ...
    }
    
    }
    
    itcl::class Idevice12685 \
    {
    inherit ItableMgr
    public method SetRadiusAttributes { args } \
    {
    ...
    foreach row $tableRow \
    {
    DestroyRow $row RadiusAttributes
    }
    ...
    foreach row $tableRow \
    {
    CreateRow $row RadiusAttributes
    }
    
    }
    }
    
    AddTable is only called once to associate tableId with a tablePath. DestroyRow/CreateRow is then called repeatedly. There's nothing else that touches m_tablePaths. 
    
    
  2. login: "jhexan"
  3. mimetype: "text/plain"
  4. username: "jhexan"