[vtkusers] Using vtkBMPReader

Dominik Szczerba domi at vision.ee.ethz.ch
Fri Feb 3 07:06:45 EST 2006


compile with -g, debug with gdb
DS

Scheurer, Christian wrote:
> Hello,
> 
> 
> i am using vtkBMPReader to read the data of a Bitmap in the following code lines:
> 
> ***********************************************
> bmpreader = vtkBMPReader::New();
> 
> if (bmpreader->CanReadFile( filename ))
>   bmpreader->SetFileName( filename );
> 
> image = bmpreader->GetOutput();
> texture->SetInput(image);
> actor->SetTexture(texture);
> bmpreader->Delete();
> ************************************************
> 
> image is a vtkImageData
> texture is a vtkTexture
> actor is a vtkActor
> other object as usual
> 
> The reading of the data is fine, but when i quit my program there is a segmentation fault and the fault has something to be with this vtkBMPReader. There are no threads, it is a small program and the other things work fine!
> 
> Can anybody help me with this segmentation fault?
> 
> Best Regards,
> Christian
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-- 
Dominik Szczerba, Dr.
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi



More information about the vtkusers mailing list