[vtkusers] Delete actor and release memory
John Drescher
drescherjm at gmail.com
Wed Jul 6 16:06:52 EDT 2011
On Wed, Jul 6, 2011 at 3:56 PM, Nicolas Rannou <nicolas.lists at gmail.com> wrote:
>
>
> On Wed, Jul 6, 2011 at 3:43 PM, John Drescher <drescherjm at gmail.com> wrote:
>>
>> On Wed, Jul 6, 2011 at 10:35 AM, Xiaofeng Z <xf10036 at hotmail.com> wrote:
>> > That's interesting, and quite unintuitive! maybe someone with better
>> > understanding of VTK's inner work can offer an explanation!
>> >
>>
>> To me this looks like garbage being left over after the object was
>> deleted. You need to look at the reference counts before the delete
>> not after.
>>
>> John
>
> How could I avoid garbage being left over?
What I mean is after the Delete if the object was really deleted the
reference counts could be not trusted because the memory holding the
reference counts would be freed. I would trace through the code to see
what exactly is happening.
John
More information about the vtkusers
mailing list