We realized that, we encounter the crash when we try to delete OcctQtViewer. When OcctQtViewer destructor works, program crashes. We do not want OcctQtViewer live for the life cycle of the application. We need to open/close the page frequently. We apply the same logic at https://github.com/gkv311/occt-samples-qopenglwidget
Note: we do not do double deletion.
Do you have any idea about this error.
Thanks in advance.