Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Dynamic Memory allocation of Global vs Local: (2 Items)
   
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?
Re: Dynamic Memory allocation of Global vs Local  
Note: the issue is observed when migrating from QNX6.5 PS1 to QNX7.1