[vtkusers] vtkMFCWindow causing crash in release mode, with visualstudio

Clinton Stimpson clinton at elemtech.com
Thu Mar 9 15:58:32 EST 2006


>Message: 16
>Date: Thu, 9 Mar 2006 16:27:43 +0100
>From: "de Boer Ingo" <I.deBoer at polytec.de>
>Subject: RE: [vtkusers] vtkMFCWindow causing crash in release mode
>	with	visualstudio
>To: "Mark Gooding" <mark.gooding at gmail.com>,	"vtkusers"
>	<vtkusers at vtk.org>
>
>Hi,
>
>I just tried the vtkSDI sample in Release. It worked fine.
>Except that the samples crash in the end of memory problems :-((
>  
>
Are you building with VTK_DEBUG_LEAKS on?
I get a crash too.
I just reported a bug
http://www.vtk.org/Bug/bug.php?op=show&bugid=2950&pos=10
Basically, VTK's static objects aren't cleaned up in the expected 
order.  This isn't a problem with the vtkMFC code.

Clint

>You could try to build your project in Release mode with debug info
>and debug it.
>
>greets
>  Ingo
>
>---
>Dr.-Ing. Ingo H. de Boer
>
>Polytec GmbH
>Polytec-Platz 1-7, 76337 Waldbronn, Germany
>phone: ++49 7243 604 106
>fax  : ++49 7243 604 255
>
>
>  
>
>>-----Original Message-----
>>I am building a Visual Studio project (.NET 2003 version) 
>>which uses the vtkMFCWindow (vtk5.0). The program builds fine 
>>in both Debug & Release modes, and runs without error in 
>>Debug mode. However, when the program is run in release mode 
>>it crashes when it gets to:
>>
>>this->pvtkMFCWindow = new vtkMFCWindow(this);
>>
>>Any ideas as to what is causing this. I wondered if it 
>>related to the mode I used to build vtk - is this the case?
>>
>>Cheers,
>>
>>    
>>




More information about the vtkusers mailing list