[vtk-developers] void vtkCamera::SetPosition crashed
dieutan
dennisnguy at yahoo.com
Thu Jan 7 18:08:36 EST 2016
Hi Everyone,
My application crashed when calling vtkCamera::SetPosition
Here is some of my code:
float cpos[3];
vtkRenderer *ren1;
ren1 = vtkRenderer::New();
vtkCamera *cam1 = ren1->GetActiveCamera();
cam1->GetPosition(reinterpret_cast<double *>(cpos));
cam1->SetPosition(0.000000,0.000000,7.453844);
Here is the error message:
Unhandled exception at 0x019661e1 in Sersim.exe: 0xC0000005: Access
violation reading location 0x00000050.
I'm using w1ndows 7, visual studio 2010, VTK version 5.10.1.
Please advice to fix the issue.
Thanks in advance,
Dennis
--
View this message in context: http://vtk.1045678.n5.nabble.com/void-vtkCamera-SetPosition-crashed-tp5735862.html
Sent from the VTK - Dev mailing list archive at Nabble.com.
More information about the vtk-developers
mailing list