Copying Volume Mesh objects leads to memory corruption
The VolumeMeshObject
copy constructor (used by its own copy()
method) creates a second shared pointer to the actual mesh instead of copying the mesh.
Steps to crash:
- Create volume object
- Create a copy using DataControl
- Exit OF, observe crash
Edited by Martin Heistermann