[vtkusers] vtkTexture SetInput crash
David Brayford
dbrayford at gmail.com
Wed Aug 17 15:54:39 EDT 2011
Hi,
I get the following error Unhandled exception at 0x01f8004f
(vtkFiltering.dll) in RegTest.exe: 0xC0000005: Access violation
reading location 0xbf2eafd9." When the function
imageTexture->SetInput( m_DataRepository->GetVtkDRR() ); is called
The other message I get is "Unhandled exception at 0x00000000 in
RegTest.exe: 0xC0000005: Access violation." which indicates I have a
null pointer. However the vtkImageData object is valid.
Code snippet below.
vtkSmartPointer<vtkTexture> imageTexture=vtkTexture::New();
vtkSmartPointer<vtkTexture> imageTexture=vtkTexture::New();
//SetInput( * vtkImageData )
imageTexture->SetInput( m_DataRepository->GetVtkDRR() );
imageTexture->InterpolateOn();
imageTexture->InterpolateOn();
More information about the vtkusers
mailing list