<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:10pt"><div>Hello all,</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;">I am trying to write a Class that manages my data.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;">The problem currently is that I am not aware how to use the itk::SmartPointer.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;">I have read its usually a bad idea to copy them. Another idea was to
 save the&nbsp;<span style="font-size: 10pt;">itk::SmartPointer* as suggested here:&nbsp;http://www.itk.org/pipermail/insight-users/2004-November/011095.html.</span></div><div style="color: rgb(0, 0, 0); font-size: 10pt; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="font-size: 10pt;">The problem here is: Whenever the scope of the smartpointer creation is left the&nbsp;</span><span style="font-size: 10pt;">itk::SmartPointer* points to a the undefined RIP. And whenever I read any ITK manual it is strictly forbidden to use new.</span></div><div style="color: rgb(0, 0, 0); font-size: 10pt; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;">So if anyone has just some time it would be nice to
 come up with a solution for my problem. Am I the first having these problems or am I just not smart enough?</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;">Cheers,</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: tahoma, 'new york', times, serif; background-color: transparent; font-style: normal;">Willi</div></div></body></html>