<!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.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Thomas,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>You may try to add</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>connector-&gt;Update();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>into your program, because connector can not be 
triggered in the pipeline.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Pingkun</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=venu.thomas@nestinfotech.com 
  href="mailto:venu.thomas@nestinfotech.com">¿ Venu Thomas ¿</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org 
  href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=insight-users@itk.org 
  href="mailto:insight-users@itk.org">insight-users@itk.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, October 21, 2004 6:13 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] Error: abnormal 
  program termination</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>Dear,</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  all...</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iam 
  making a new sample pgm.. if i want to build this sample program in 
  VS&nbsp;C++&nbsp;.. then i got a error(as bellow).. how is avoid it? pls send 
  to me..</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Error:</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp; <STRONG>Debug error 
!</STRONG></FONT></DIV>
  <DIV><FONT face=Arial size=2><STRONG>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  </STRONG></FONT></DIV>
  <DIV><FONT face=Arial size=2><STRONG>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  program :..../sample/myproject.cxx</STRONG></FONT></DIV>
  <DIV><FONT face=Arial size=2><STRONG></STRONG></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><STRONG>&nbsp;&nbsp;&nbsp; abnormal program 
  termination</STRONG></FONT></DIV>
  <DIV><FONT face=Arial size=2><STRONG></STRONG></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><STRONG>&nbsp;&nbsp;&nbsp; (Press Retry to debug 
  the application)</STRONG></FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>My program is ..</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><STRONG>myprogram.cxx:</STRONG></FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>#include "itkImage.h"<BR>#include 
  "itkImageFileReader.h"<BR>#include "itkImageToVTKImageFilter.h"<BR>#include 
  "vtkImageViewer.h"<BR>#include "vtkRenderWindowInteractor.h"<BR>int main( int 
  argc, char **argv ) {<BR>typedef itk::Image&lt;unsigned short,2&gt; 
  ImageType;<BR>typedef itk::ImageFileReader&lt;ImageType&gt; 
  ReaderType;<BR>typedef itk::ImageToVTKImageFilter&lt; ImageType&gt; 
  ConnectorType;<BR>ReaderType::Pointer reader = 
  ReaderType::New();<BR>ConnectorType::Pointer connector = 
  ConnectorType::New();<BR>reader-&gt;SetFileName( argv[1] 
  );<BR>connector-&gt;SetInput( reader-&gt;GetOutput() );<BR>vtkImageViewer * 
  viewer = vtkImageViewer::New();<BR>vtkRenderWindowInteractor * 
  renderWindowInteractor 
  =<BR>vtkRenderWindowInteractor::New();<BR>viewer-&gt;SetupInteractor( 
  renderWindowInteractor );<BR>viewer-&gt;SetInput( connector-&gt;GetOutput() 
  );<BR>viewer-&gt;Render();<BR>viewer-&gt;SetColorWindow( 255 
  );<BR>viewer-&gt;SetColorLevel( 128 
  );<BR>renderWindowInteractor-&gt;Start();<BR>return 0;<BR>}</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I wait for ur reply....</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
  <DIV><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Venu 
  Thomas</FONT></DIV></BLOCKQUOTE></BODY></HTML>