Sheran Vaz Singarayappa(deleted)
|
Dynamic Memory allocation of Global vs Local
|
Sheran Vaz Singarayappa(deleted)
05/11/2022 6:41 AM
post121802
|
Dynamic Memory allocation of Global vs Local
Trying to create a VTK object using below code snippet
vtkSmartPointer<vtkCylinderSource> test=vtkSmartPointer<vtkCylinderSource>::New();
test->SetHeight(rodLen);
test->SetCenter(0,0,0);
test->SetRadius(rodRadius);
test->Update(); <----- It crashes here at startup
The above code snippet works fine when I call it in main(). The same crashes at call to Update() when I put it in the
constructor of a globally initialized object.
Is it due to memory limit changes in QNX 7.1? what is your recommendation?
|
|
|