diff --git a/libsrc/interface/nginterface_v2.cpp b/libsrc/interface/nginterface_v2.cpp index 550ce1a8..1c4c6395 100644 --- a/libsrc/interface/nginterface_v2.cpp +++ b/libsrc/interface/nginterface_v2.cpp @@ -102,9 +102,14 @@ namespace netgen */ Ngx_Mesh :: ~Ngx_Mesh () - { + { + /* + // causes crashes when global variable netgen::mesh is destructed + // before visualization data + if (mesh == netgen::mesh) netgen::mesh = nullptr; + */ } int Ngx_Mesh :: GetDimension() const