<!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> </DIV>
<DIV><FONT face=Arial size=2>You may try to add</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>connector->Update();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </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>
all...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> iam
making a new sample pgm.. if i want to build this sample program in
VS C++ .. then i got a error(as bellow).. how is avoid it? pls send
to me..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Error:</FONT></DIV>
<DIV><FONT face=Arial size=2> <STRONG>Debug error
!</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG>
</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG>
program :..../sample/myproject.cxx</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG></STRONG></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG> abnormal program
termination</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG></STRONG></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG> (Press Retry to debug
the application)</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My program is ..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>myprogram.cxx:</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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<unsigned short,2>
ImageType;<BR>typedef itk::ImageFileReader<ImageType>
ReaderType;<BR>typedef itk::ImageToVTKImageFilter< ImageType>
ConnectorType;<BR>ReaderType::Pointer reader =
ReaderType::New();<BR>ConnectorType::Pointer connector =
ConnectorType::New();<BR>reader->SetFileName( argv[1]
);<BR>connector->SetInput( reader->GetOutput() );<BR>vtkImageViewer *
viewer = vtkImageViewer::New();<BR>vtkRenderWindowInteractor *
renderWindowInteractor
=<BR>vtkRenderWindowInteractor::New();<BR>viewer->SetupInteractor(
renderWindowInteractor );<BR>viewer->SetInput( connector->GetOutput()
);<BR>viewer->Render();<BR>viewer->SetColorWindow( 255
);<BR>viewer->SetColorLevel( 128
);<BR>renderWindowInteractor->Start();<BR>return 0;<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I wait for ur reply....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial
size=2> Venu
Thomas</FONT></DIV></BLOCKQUOTE></BODY></HTML>