[vtkusers] Using vtkBMPReader

Scheurer, Christian scheurer at ira.uka.de
Fri Feb 3 05:36:07 EST 2006


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


More information about the vtkusers mailing list