[vtkusers] crash on setinput

Alex Malyushytskyy alexmalvtk at gmail.com
Thu Aug 18 15:22:25 EDT 2011


I am not sure it is related to crash,
But you should replace

>> vtkSmartPointer<vtkTexture> imageTexture=vtkTexture::New();

with

>>  vtkSmartPointer<vtkTexture> imageTexture=vtkSmartPointer<vtkTexture>New();

anyway,

Regards,

Alex


On Thu, Aug 18, 2011 at 8:01 AM, David Brayford <dbrayford at gmail.com> wrote:
> I am getting the following crash "Unhandled exception at 0x00000000 in
> RegTest.exe: 0xC0000005: Access violation." when the SetInput function
> is executed. However, the vtkImageData is not null (see code below). I
> don't know how to overcome this error and any advice would be greatly
> appreciated.
>
>        if( !m_DataRepository->GetVtkDRR() )
>        {
>                return;
>        }
>
>        vtkSmartPointer<vtkTexture> imageTexture=vtkTexture::New();
>        imageTexture->SetInput( m_DataRepository->GetVtkDRR() );
>
> David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list