[vtkusers] Crash when closing MDI child in "Sample" MFC app

Andy C andy_c at mindspring.com
Sun Jun 17 20:08:32 EDT 2001


Hi all,

I'm a new user that just subscribed today.  I saw an earlier question that 
someone had about the MFC "Sample" app crashing when the app or the MDI 
child window was closed.  It turns out that there are two different 
versions of SAMPLE on the current distribution.  The one in vtk32\Sample is 
old.  If you download the source, you'll find a newer version of SAMPLE in
vtk-src-windows\sample.  This version fixes the mouse problems by 
substituting vtkHandleMessage2() for vtkHandleMessage() in 
vtkMFCRenderView::WindowProc().  It also fixes the crash on window close by 
swapping the order in which the Renderer and the RenderWindow are 
Delete()'ed in vtkMFCRenderView::~vtkMFCRenderView().

Thought this might be of help to someone.

Andy C





More information about the vtkusers mailing list