<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=546000314-24102005><FONT face=Arial color=#0000ff size=2>You
can destroy a smart pointer by setting it to zero. </FONT></SPAN></DIV>
<DIV><SPAN class=546000314-24102005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=546000314-24102005><FONT face=Arial color=#0000ff size=2>ptr =
0; // releases the previous object.</FONT></SPAN></DIV>
<DIV><SPAN class=546000314-24102005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=546000314-24102005><FONT face=Arial color=#0000ff size=2>The
exception you are getting is probably related to the size of the second image
being marketedly different from the size of the first image. The pipeline caches
information about the sizes of the data it is operating on.</FONT></SPAN></DIV>
<DIV><SPAN class=546000314-24102005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=546000314-24102005><FONT face=Arial color=#0000ff size=2>When
loading new data into an existing pipeline (one that has already executed on
other data), it is best to call UpdateLargestPossibleRegion() instead of calling
Update() on the pipeline. This forces the pipeline to renogiate the cached
image sizes.</FONT></SPAN></DIV>
<DIV><SPAN class=546000314-24102005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=546000314-24102005><FONT face=Arial color=#0000ff
size=2>Jim</FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
insight-users-bounces+millerjv=crd.ge.com@itk.org
[mailto:insight-users-bounces+millerjv=crd.ge.com@itk.org]<B>On Behalf Of
</B>Diego Parada<BR><B>Sent:</B> Friday, October 21, 2005 9:10
PM<BR><B>To:</B> Luis Ibanez; ITKHelp<BR><B>Subject:</B> [Insight-users] Smart
pointer destruction<BR><BR></FONT></DIV>Hi,<BR><BR>I have a problem with a
itkImageToVTKimageFilter:<BR>My application is an vc SDI and when i open an
set image run fine, but i open another set image after apears an excetion
about the dimmesion of the image<BR>The exporter of connector is a smart
pointer How Ican Destroy this pointer?<BR><BR clear=all><BR>-- <BR>Diego
Armando Parada Cuervo<BR>Estudiante de Ingeniería de Sistemas y
Computación<BR>Universidad Pedagógica y Tecnológica de Colombia
</BLOCKQUOTE></BODY></HTML>