I am using vtkMFCWindow object to link vtk to MFC. I create a Cstatic object and pass it on to the constructor as in
m_vtkmfcWindow = new vtkMFCWindow (pWnd);
This code works well in release mode, but crashes in debug mode. The following is the error message:
Debug Assertion Failed!
Further checking reveals the application executable has triggered a break point at line 88 of vtkMFCWindow.cpp
BOOL created = CWnd::Create(nullptr,…)
Would be grateful for any help.
Platform Windows 10, 2004
VTK version 8.2
Visual Studio 2015 professional.
Thanks in advance.