<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello,<br><br>I have restarted working with vtk, this time under windows, M$ VC++ 6.0. I have vtk 5.0.2 installed, built in the release with symbols mode, on a windows 2000 machine. I want to use the MFC functionalities, and thus i looked into the examples on MFC. I have started my own project and use the example to find the nesecary steps.<br><br>So far so good. However, when want to create a vtkMFCWindow in debug-mode, and delete it later on, so like this:<br><br>&nbsp;&nbsp;&nbsp; m_pMFCWindow = new vtkMFCWindow(this-&gt;GetDlgItem(DISPLAYFRAME));<br>&nbsp;&nbsp;&nbsp; delete m_pMFCWindow;<br><br>I get a dialog telling me that a debug assertion failed. specifically it tells me that it stops on:<br>&nbsp;&nbsp;&nbsp; pHead-&gt;nBlockUsed == nBlockUsed<br><br>Furthermore i get a warning:<br>&nbsp;&nbsp;&nbsp;
 Warning: calling DestroyWindow in CWnd::~CWnd; OnDestroy or PostNcDestroy in derived class will not be called.<br><br>Again, all of this is only in debug mode. I know that i link the vtk library in release mode w/ symbols on my program, can that be the problem? When i run my program in Release mode, obviously i don't get the debug assertion failed dialog. <br><br>How do you create and destroy an object of the type vtkMFCWindow in a correct way?<br><br>TIA!<br><br>Han<br></div></div><br>Send instant messages to your online friends http://uk.messenger.yahoo.com </body></html>