Using vtkBMPReader

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Using vtkBMPReader

Scheurer, Christian

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
Reply | Threaded
Open this post in threaded view
|

Re: Using vtkBMPReader

Dominik Szczerba-2
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
_______________________________________________
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