[vtkusers] vtkSmartPointer usage question
    Elvis Dowson 
    elvis.dowson at mac.com
       
    Thu Nov  5 21:59:11 EST 2009
    
    
  
Hi,
On Nov 6, 2009, at 2:50 AM, Alex Malyushytskyy wrote:
> What happens to the old reference?
> I can assume that reference count will be decreased. Will it or not?
> Would pointer be deleted if its reference count get to 0 when de - 
> referenced ?
When the reference count is not zero, and you call release, the object  
is not deleted.
When the reference count hits zero, after you call release, it is safe  
to delete the object.
Best regards,
Elvis
    
    
More information about the vtkusers
mailing list