|
(0005090)
|
|
changwon lee
|
|
2006-10-02 22:33
|
|
vtk 5.0.2 library was builded as shared lib, debug mode and no DEBUG_LEAKS option.
MFC program is generated with standard MFC SDI application in visual studio .net 2005.
then included some vtk header and created new class and deleted it
CsampleView::CsampleView()
{
// TODO: add construction code here
vtkRenderWindow* renWin = vtkRenderWindow::New();
renWin->Delete();
}
when MFC sdi application is builded with "Use MFC in a Shared DLL"
following error occurs.
sample.exe': Loaded 'C:\WINDOWS\system32\IMEKR70.IME', No symbols loaded.
'sample.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No symbols loaded.
Detected memory leaks!
Dumping objects ->
{1139} normal block at 0x0285BDF0, 36 bytes long.
Data: < ! > 1C DE 21 01 01 00 00 00 00 CD CD CD 01 00 00 00
{1040} normal block at 0x0284E310, 31 bytes long.
Data: <vtkWin32RenderWi> 76 74 6B 57 69 6E 33 32 52 65 6E 64 65 72 57 69
{1039} normal block at 0x0284E2B8, 27 bytes long.
Data: <vtkWin32OpenGLRe> 76 74 6B 57 69 6E 33 32 4F 70 65 6E 47 4C 52 65
but in "Use MFC in a Static Library"
there is no error.
I have attached sample code. |
|