Thank you guys, it's working fine with vtkSmartPointer. -- View this message in context: http://vtk.1045678.n5.nabble.com/Deleting-ImageData-Inside-Loop-tp5713986p5713991.html Sent from the VTK - Users mailing list archive at Nabble.com.