Im having a problem creating physx convex mesh. what im doing is taking all the mesh data from an ogre mesh ( which i have made sure, is working correctly), and using physx to convert it into a convex mesh.

When im collecting the vertices data from the ogre mesh, i use a dynamic array.

Code:
pObjVertices = new (std::nothrow) NxVec3[ VertexAmount ];
here it works fine, then i pass the pointer through a function...