From 2d4bed6a77cbeaa1446c4ba5a4ed5f07410d09b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Sun, 27 Aug 2017 14:51:35 +0200 Subject: [PATCH] fix crash at netgen exit --- libsrc/interface/nginterface_v2.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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