[vtkusers] Memory leaks....
echinococcus Multilocularis
lintworm2 at yahoo.co.uk
Sun Oct 29 07:29:43 EST 2006
Hello all,
I finally got my M$ VC project working, using vtkMFCWindow. In this program i read some geometrical data from disk using my own readerfunction. I then display it using vtkMFCWindow. That all works fine, until i close the program and clean up the memory. At the end of program i get a message that memory leaks are detected. The problem is, that i really have no clue where they are from. When i look at the data dumped by VC, i find references to all kinds of objects i never have used. Can anybody tell me what i am doing wrong, or give me any other clues? I have build my program mostly using the examples given for vtkMFCWindow, however, also these examples give me the same problems.
Thanking in advance,
Han
Output of M$VC 6.0
Warning: calling DestroyWindow in CWnd::~CWnd; OnDestroy or PostNcDestroy in derived class will not be called.
Detected memory leaks!
Dumping objects ->
{1530} normal block at 0x022A6CF0, 36 bytes long.
Data: <8 > 38 20 15 10 01 00 00 00 00 CD CD CD 01 00 00 00
{1523} normal block at 0x022A7D40, 5 bytes long.
Data: <true > 74 72 75 65 00
{1522} normal block at 0x022A7D80, 6 bytes long.
Data: <false > 66 61 6C 73 65 00
{1521} normal block at 0x022A6C70, 1 bytes long.
Data: < > 00
{1516} normal block at 0x022A6E00, 24 bytes long.
Data: <`wL pl* . > 60 77 4C 10 01 00 00 00 70 6C 2A 02 2E 00 CD CD
{1510} normal block at 0x022A6E50, 8 bytes long.
Data: < wL > 98 77 4C 10 01 00 00 00
{1502} normal block at 0x022A5820, 24 bytes long.
Data: <(tL > 28 74 4C 10 01 00 00 00 00 00 00 00 00 00 00 00
{1431} normal block at 0x022A5550, 512 bytes long.
Data: < > 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00
{1418} normal block at 0x022A5920, 16 bytes long.
Data: <@wL > 40 77 4C 10 01 00 00 00 00 00 00 00 00 00 00 00
{1383} normal block at 0x022A4650, 31 bytes long.
Data: <vtkWin32RenderWi> 76 74 6B 57 69 6E 33 32 52 65 6E 64 65 72 57 69
{1382} normal block at 0x022A46A0, 27 bytes long.
Data: <vtkWin32OpenGLRe> 76 74 6B 57 69 6E 33 32 4F 70 65 6E 47 4C 52 65
{1381} normal block at 0x022A46F0, 28 bytes long.
Data: <vtkOpenGLFreeTyp> 76 74 6B 4F 70 65 6E 47 4C 46 72 65 65 54 79 70
{1380} normal block at 0x022A4740, 17 bytes long.
Data: <vtkOpenGLTexture> 76 74 6B 4F 70 65 6E 47 4C 54 65 78 74 75 72 65
{1379} normal block at 0x022A4780, 18 bytes long.
Data: <vtkOpenGLRendere> 76 74 6B 4F 70 65 6E 47 4C 52 65 6E 64 65 72 65
{1378} normal block at 0x022A47C0, 18 bytes long.
Data: <vtkOpenGLPropert> 76 74 6B 4F 70 65 6E 47 4C 50 72 6F 70 65 72 74
{1377} normal block at 0x022A4800, 26 bytes long.
Data: <vtkOpenGLPolyDat> 76 74 6B 4F 70 65 6E 47 4C 50 6F 6C 79 44 61 74
{1376} normal block at 0x022A4850, 24 bytes long.
Data: <vtkOpenGLPolyDat> 76 74 6B 4F 70 65 6E 47 4C 50 6F 6C 79 44 61 74
{1375} normal block at 0x022A48A0, 15 bytes long.
Data: <vtkOpenGLLight > 76 74 6B 4F 70 65 6E 47 4C 4C 69 67 68 74 00
{1374} normal block at 0x022A48E0, 21 bytes long.
Data: <vtkOpenGLImageMa> 76 74 6B 4F 70 65 6E 47 4C 49 6D 61 67 65 4D 61
{1373} normal block at 0x022A4930, 20 bytes long.
Data: <vtkOpenGLImageAc> 76 74 6B 4F 70 65 6E 47 4C 49 6D 61 67 65 41 63
{1372} normal block at 0x022A4970, 26 bytes long.
Data: <vtkOpenGLExtensi> 76 74 6B 4F 70 65 6E 47 4C 45 78 74 65 6E 73 69
{1371} normal block at 0x022A49C0, 16 bytes long.
Data: <vtkOpenGLCamera > 76 74 6B 4F 70 65 6E 47 4C 43 61 6D 65 72 61 00
{1370} normal block at 0x022A4A00, 15 bytes long.
Data: <vtkOpenGLActor > 76 74 6B 4F 70 65 6E 47 4C 41 63 74 6F 72 00
{1369} normal block at 0x022A4A40, 17 bytes long.
Data: <vtkGL2PSExporter> 76 74 6B 47 4C 32 50 53 45 78 70 6F 72 74 65 72
{1368} normal block at 0x022A4A80, 20 bytes long.
Data: <vtkWorldPointPic> 76 74 6B 57 6F 72 6C 64 50 6F 69 6E 74 50 69 63
{1367} normal block at 0x022A4AC0, 23 bytes long.
Data: <vtkWindowToImage> 76 74 6B 57 69 6E 64 6F 77 54 6F 49 6D 61 67 65
{1366} normal block at 0x022A4B10, 18 bytes long.
Data: <vtkVolumePropert> 76 74 6B 56 6F 6C 75 6D 65 50 72 6F 70 65 72 74
{1365} normal block at 0x022A4B50, 20 bytes long.
Data: <vtkVolumeCollect> 76 74 6B 56 6F 6C 75 6D 65 43 6F 6C 6C 65 63 74
{1364} normal block at 0x022A4B90, 10 bytes long.
Data: <vtkVolume > 76 74 6B 56 6F 6C 75 6D 65 00
{1363} normal block at 0x022A4BD0, 16 bytes long.
Data: <vtkVRMLExporter > 76 74 6B 56 52 4D 4C 45 78 70 6F 72 74 65 72 00
{1362} normal block at 0x022A4C10, 21 bytes long.
Data: <vtkTupleInterpol> 76 74 6B 54 75 70 6C 65 49 6E 74 65 72 70 6F 6C
{1361} normal block at 0x022A4C60, 25 bytes long.
Data: <vtkTransformInte> 76 74 6B 54 72 61 6E 73 66 6F 72 6D 49 6E 74 65
{1360} normal block at 0x022A4CB0, 11 bytes long.
Data: <vtkTexture > 76 74 6B 54 65 78 74 75 72 65 00
{1359} normal block at 0x022A4CF0, 16 bytes long.
Data: <vtkTextProperty > 76 74 6B 54 65 78 74 50 72 6F 70 65 72 74 79 00
{1358} normal block at 0x022A4D30, 14 bytes long.
Data: <vtkTextMapper > 76 74 6B 54 65 78 74 4D 61 70 70 65 72 00
{1357} normal block at 0x022A4D70, 15 bytes long.
Data: <vtkTextActor3D > 76 74 6B 54 65 78 74 41 63 74 6F 72 33 44 00
{1356} normal block at 0x022A4DB0, 13 bytes long.
Data: <vtkTextActor > 76 74 6B 54 65 78 74 41 63 74 6F 72 00
{1355} normal block at 0x022A4DF0, 11 bytes long.
Data: <vtkTesting > 76 74 6B 54 65 73 74 69 6E 67 00
{1354} normal block at 0x022A4E30, 23 bytes long.
Data: <vtkSelectVisible> 76 74 6B 53 65 6C 65 63 74 56 69 73 69 62 6C 65
{1353} normal block at 0x022A4E80, 19 bytes long.
Data: <vtkScaledTextAct> 76 74 6B 53 63 61 6C 65 64 54 65 78 74 41 63 74
{1352} normal block at 0x022A4EC0, 18 bytes long.
Data: <vtkScalarBarActo> 76 74 6B 53 63 61 6C 61 72 42 61 72 41 63 74 6F
{1351} normal block at 0x022A4F00, 18 bytes long.
Data: <vtkRendererSourc> 76 74 6B 52 65 6E 64 65 72 65 72 53 6F 75 72 63
{1350} normal block at 0x022A4F40, 22 bytes long.
Data: <vtkRendererColle> 76 74 6B 52 65 6E 64 65 72 65 72 43 6F 6C 6C 65
{1349} normal block at 0x022A4F90, 12 bytes long.
Data: <vtkRenderer > 76 74 6B 52 65 6E 64 65 72 65 72 00
{1348} normal block at 0x022A4FD0, 26 bytes long.
Data: <vtkRenderWindowI> 76 74 6B 52 65 6E 64 65 72 57 69 6E 64 6F 77 49
{1347} normal block at 0x022A3050, 26 bytes long.
Data: <vtkRenderWindowC> 76 74 6B 52 65 6E 64 65 72 57 69 6E 64 6F 77 43
{1346} normal block at 0x022A30A0, 16 bytes long.
Data: <vtkRenderWindow > 76 74 6B 52 65 6E 64 65 72 57 69 6E 64 6F 77 00
{1345} normal block at 0x022A30E0, 26 bytes long.
Data: <vtkQuaternionInt> 76 74 6B 51 75 61 74 65 72 6E 69 6F 6E 49 6E 74
{1344} normal block at 0x022A3130, 12 bytes long.
Data: <vtkProperty > 76 74 6B 50 72 6F 70 65 72 74 79 00
{1343} normal block at 0x022A3170, 14 bytes long.
Data: <vtkPropPicker > 76 74 6B 50 72 6F 70 50 69 63 6B 65 72 00
{1342} normal block at 0x022A31B0, 20 bytes long.
Data: <vtkProp3DCollect> 76 74 6B 50 72 6F 70 33 44 43 6F 6C 6C 65 63 74
{1341} normal block at 0x022A31F0, 20 bytes long.
Data: <vtkPolyDataMappe> 76 74 6B 50 6F 6C 79 44 61 74 61 4D 61 70 70 65
{1340} normal block at 0x022A3230, 18 bytes long.
Data: <vtkPolyDataMappe> 76 74 6B 50 6F 6C 79 44 61 74 61 4D 61 70 70 65
{1339} normal block at 0x022A3270, 15 bytes long.
Data: <vtkPointPicker > 76 74 6B 50 6F 69 6E 74 50 69 63 6B 65 72 00
{1338} normal block at 0x022A32B0, 10 bytes long.
Data: <vtkPicker > 76 74 6B 50 69 63 6B 65 72 00
{1337} normal block at 0x022A32F0, 28 bytes long.
Data: <vtkParallelCoord> 76 74 6B 50 61 72 61 6C 6C 65 6C 43 6F 6F 72 64
{1336} normal block at 0x022A3340, 16 bytes long.
Data: <vtkOOGLExporter > 76 74 6B 4F 4F 47 4C 45 78 70 6F 72 74 65 72 00
{1335} normal block at 0x022A3380, 15 bytes long.
Data: <vtkOBJExporter > 76 74 6B 4F 42 4A 45 78 70 6F 72 74 65 72 00
{1334} normal block at 0x022A33C0, 20 bytes long.
Data: <vtkMapperCollect> 76 74 6B 4D 61 70 70 65 72 43 6F 6C 6C 65 63 74
{1333} normal block at 0x022A3400, 12 bytes long.
Data: <vtkLightKit > 76 74 6B 4C 69 67 68 74 4B 69 74 00
{1332} normal block at 0x022A3440, 19 bytes long.
Data: <vtkLightCollecti> 76 74 6B 4C 69 67 68 74 43 6F 6C 6C 65 63 74 69
{1331} normal block at 0x022A3480, 9 bytes long.
Data: <vtkLight > 76 74 6B 4C 69 67 68 74 00
{1330} normal block at 0x022A34C0, 21 bytes long.
Data: <vtkLabeledDataMa> 76 74 6B 4C 61 62 65 6C 65 64 44 61 74 61 4D 61
{1329} normal block at 0x022A3510, 13 bytes long.
Data: <vtkLODProp3D > 76 74 6B 4C 4F 44 50 72 6F 70 33 44 00
{1328} normal block at 0x022A3550, 12 bytes long.
Data: <vtkLODActor > 76 74 6B 4C 4F 44 41 63 74 6F 72 00
{1327} normal block at 0x022A3590, 23 bytes long.
Data: <vtkInteractorSty> 76 74 6B 49 6E 74 65 72 61 63 74 6F 72 53 74 79
{1326} normal block at 0x022A35E0, 25 bytes long.
Data: <vtkInteractorSty> 76 74 6B 49 6E 74 65 72 61 63 74 6F 72 53 74 79
{1325} normal block at 0x022A3630, 34 bytes long.
Data: <vtkInteractorSty> 76 74 6B 49 6E 74 65 72 61 63 74 6F 72 53 74 79
{1324} normal block at 0x022A3680, 33 bytes long.
Data: <vtkInteractorSty> 76 74 6B 49 6E 74 65 72 61 63 74 6F 72 53 74 79
{1323} normal block at 0x022A36D0, 28 bytes long.
Data: <vtkInteractorSty> 76 74 6B 49 6E 74 65 72 61 63 74 6F 72 53 74 79
{1322} normal block at 0x022A3720, 26 bytes long.
Data: <vtkInteractorSty> 76 74 6B 49 6E 74 65 72 61 63 74 6F 72 53 74 79
{1321} normal block at 0x022A3770, 25 bytes long.
Data: <vtkInteractorSty> 76 74 6B 49 6E 74 65 72 61 63 74 6F 72 53 74 79
{1320} normal block at 0x022A37C0, 33 bytes long.
Data: <vtkInteractorSty> 76 74 6B 49 6E 74 65 72 61 63 74 6F 72 53 74 79
{1319} normal block at 0x022A3810, 33 bytes long.
Data: <vtkInteractorSty> 76 74 6B 49 6E 74 65 72 61 63 74 6F 72 53 74 79
{1318} normal block at 0x022A3860, 32 bytes long.
Data: <vtkInteractorSty> 76 74 6B 49 6E 74 65 72 61 63 74 6F 72 53 74 79
{1317} normal block at 0x022A38B0, 24 bytes long.
Data: <vtkInteractorSty> 76 74 6B 49 6E 74 65 72 61 63 74 6F 72 53 74 79
{1316} normal block at 0x022A3900, 25 bytes long.
Data: <vtkInteractorSty> 76 74 6B 49 6E 74 65 72 61 63 74 6F 72 53 74 79
{1315} normal block at 0x022A3950, 19 bytes long.
Data: <vtkInteractorSty> 76 74 6B 49 6E 74 65 72 61 63 74 6F 72 53 74 79
{1314} normal block at 0x022A2050, 27 bytes long.
Data: <vtkInteractorEve> 76 74 6B 49 6E 74 65 72 61 63 74 6F 72 45 76 65
{1313} normal block at 0x022A20A0, 18 bytes long.
Data: <vtkImagingFactor> 76 74 6B 49 6D 61 67 69 6E 67 46 61 63 74 6F 72
{1312} normal block at 0x022A20E0, 16 bytes long.
Data: <vtkImageViewer2 > 76 74 6B 49 6D 61 67 65 56 69 65 77 65 72 32 00
{1311} normal block at 0x022A2120, 15 bytes long.
Data: <vtkImageViewer > 76 74 6B 49 6D 61 67 65 56 69 65 77 65 72 00
{1310} normal block at 0x022A2160, 15 bytes long.
Data: <vtkImageMapper > 76 74 6B 49 6D 61 67 65 4D 61 70 70 65 72 00
{1309} normal block at 0x022A21A0, 14 bytes long.
Data: <vtkImageActor > 76 74 6B 49 6D 61 67 65 41 63 74 6F 72 00
{1308} normal block at 0x022A21E0, 14 bytes long.
Data: <vtkIVExporter > 76 74 6B 49 56 45 78 70 6F 72 74 65 72 00
{1307} normal block at 0x022A2220, 30 bytes long.
Data: <vtkHierarchicalP> 76 74 6B 48 69 65 72 61 72 63 68 69 63 61 6C 50
{1306} normal block at 0x022A2270, 19 bytes long.
Data: <vtkGraphicsFacto> 76 74 6B 47 72 61 70 68 69 63 73 46 61 63 74 6F
{1305} normal block at 0x022A22B0, 33 bytes long.
Data: <vtkGenericRender> 76 74 6B 47 65 6E 65 72 69 63 52 65 6E 64 65 72
{1304} normal block at 0x022A2300, 25 bytes long.
Data: <vtkFrustumCovera> 76 74 6B 46 72 75 73 74 75 6D 43 6F 76 65 72 61
{1303} normal block at 0x022A3D50, 12 bytes long.
Data: <vtkFollower > 76 74 6B 46 6F 6C 6C 6F 77 65 72 00
{1302} normal block at 0x022A3D90, 17 bytes long.
Data: <vtkDataSetMapper> 76 74 6B 44 61 74 61 53 65 74 4D 61 70 70 65 72
{1301} normal block at 0x022A3DD0, 20 bytes long.
Data: <vtkCullerCollect> 76 74 6B 43 75 6C 6C 65 72 43 6F 6C 6C 65 63 74
{1300} normal block at 0x022A3E10, 14 bytes long.
Data: <vtkCellPicker > 76 74 6B 43 65 6C 6C 50 69 63 6B 65 72 00
{1299} normal block at 0x022A3E50, 22 bytes long.
Data: <vtkCameraInterpo> 76 74 6B 43 61 6D 65 72 61 49 6E 74 65 72 70 6F
{1298} normal block at 0x022A3EA0, 10 bytes long.
Data: <vtkCamera > 76 74 6B 43 61 6D 65 72 61 00
{1297} normal block at 0x022A3EE0, 15 bytes long.
Data: <vtkAxisActor2D > 76 74 6B 41 78 69 73 41 63 74 6F 72 32 44 00
{1296} normal block at 0x022A3F20, 12 bytes long.
Data: <vtkAssembly > 76 74 6B 41 73 73 65 6D 62 6C 79 00
{1295} normal block at 0x022A3F60, 19 bytes long.
Data: <vtkActorCollecti> 76 74 6B 41 63 74 6F 72 43 6F 6C 6C 65 63 74 69
{1294} normal block at 0x022A3FA0, 9 bytes long.
Data: <vtkActor > 76 74 6B 41 63 74 6F 72 00
{1283} normal block at 0x02286F08, 1024 bytes long.
Data: < (r > C4 28 72 00 CD CD CD CD CD CD CD CD CD CD CD CD
{1282} normal block at 0x022A3FE0, 16 bytes long.
Data: <, o( > 2C B1 BB 01 00 01 00 00 01 00 00 00 08 6F 28 02
{1240} normal block at 0x022A24B0, 15 bytes long.
Data: <vtkMPEG2Writer > 76 74 6B 4D 50 45 47 32 57 72 69 74 65 72 00
{1239} normal block at 0x022A24F0, 13 bytes long.
Data: <vtkAVIWriter > 76 74 6B 41 56 49 57 72 69 74 65 72 00
{1238} normal block at 0x022A2530, 22 bytes long.
Data: <vtkZLibDataCompr> 76 74 6B 5A 4C 69 62 44 61 74 61 43 6F 6D 70 72
{1237} normal block at 0x022A2580, 16 bytes long.
Data: <vtkXYZMolReader > 76 74 6B 58 59 5A 4D 6F 6C 52 65 61 64 65 72 00
{1236} normal block at 0x022A25C0, 16 bytes long.
Data: <vtkXMLUtilities > 76 74 6B 58 4D 4C 55 74 69 6C 69 74 69 65 73 00
{1235} normal block at 0x022A2600, 29 bytes long.
Data: <vtkXMLUnstructur> 76 74 6B 58 4D 4C 55 6E 73 74 72 75 63 74 75 72
{1234} normal block at 0x022A2650, 29 bytes long.
Data: <vtkXMLUnstructur> 76 74 6B 58 4D 4C 55 6E 73 74 72 75 63 74 75 72
{1233} normal block at 0x022A26A0, 27 bytes long.
Data: <vtkXMLStructured> 76 74 6B 58 4D 4C 53 74 72 75 63 74 75 72 65 64
{1232} normal block at 0x022A26F0, 27 bytes long.
Data: <vtkXMLStructured> 76 74 6B 58 4D 4C 53 74 72 75 63 74 75 72 65 64
{1231} normal block at 0x022A2740, 28 bytes long.
Data: <vtkXMLRectilinea> 76 74 6B 58 4D 4C 52 65 63 74 69 6C 69 6E 65 61
{1230} normal block at 0x022A2790, 28 bytes long.
Data: <vtkXMLRectilinea> 76 74 6B 58 4D 4C 52 65 63 74 69 6C 69 6E 65 61
{1229} normal block at 0x022A27E0, 21 bytes long.
Data: <vtkXMLPolyDataWr> 76 74 6B 58 4D 4C 50 6F 6C 79 44 61 74 61 57 72
{1228} normal block at 0x022A2830, 21 bytes long.
Data: <vtkXMLPolyDataRe> 76 74 6B 58 4D 4C 50 6F 6C 79 44 61 74 61 52 65
{1227} normal block at 0x022A2880, 13 bytes long.
Data: <vtkXMLParser > 76 74 6B 58 4D 4C 50 61 72 73 65 72 00
{1226} normal block at 0x022A28C0, 30 bytes long.
Data: <vtkXMLPUnstructu> 76 74 6B 58 4D 4C 50 55 6E 73 74 72 75 63 74 75
{1225} normal block at 0x022A2910, 30 bytes long.
Data: <vtkXMLPUnstructu> 76 74 6B 58 4D 4C 50 55 6E 73 74 72 75 63 74 75
{1224} normal block at 0x022A2960, 28 bytes long.
Data: <vtkXMLPStructure> 76 74 6B 58 4D 4C 50 53 74 72 75 63 74 75 72 65
{1223} normal block at 0x022A29B0, 28 bytes long.
Data: <vtkXMLPStructure> 76 74 6B 58 4D 4C 50 53 74 72 75 63 74 75 72 65
{1222} normal block at 0x022A2A00, 29 bytes long.
Data: <vtkXMLPRectiline> 76 74 6B 58 4D 4C 50 52 65 63 74 69 6C 69 6E 65
{1221} normal block at 0x022A2A50, 29 bytes long.
Data: <vtkXMLPRectiline> 76 74 6B 58 4D 4C 50 52 65 63 74 69 6C 69 6E 65
{1220} normal block at 0x022A2AA0, 22 bytes long.
Data: <vtkXMLPPolyDataW> 76 74 6B 58 4D 4C 50 50 6F 6C 79 44 61 74 61 57
{1219} normal block at 0x022A2AF0, 22 bytes long.
Data: <vtkXMLPPolyDataR> 76 74 6B 58 4D 4C 50 50 6F 6C 79 44 61 74 61 52
{1218} normal block at 0x022A2B40, 23 bytes long.
Data: <vtkXMLPImageData> 76 74 6B 58 4D 4C 50 49 6D 61 67 65 44 61 74 61
{1217} normal block at 0x022A2B90, 23 bytes long.
Data: <vtkXMLPImageData> 76 74 6B 58 4D 4C 50 49 6D 61 67 65 44 61 74 61
{1216} normal block at 0x022A2BE0, 21 bytes long.
Data: <vtkXMLPDataSetWr> 76 74 6B 58 4D 4C 50 44 61 74 61 53 65 74 57 72
{1215} normal block at 0x022A2C30, 22 bytes long.
Data: <vtkXMLImageDataW> 76 74 6B 58 4D 4C 49 6D 61 67 65 44 61 74 61 57
{1214} normal block at 0x022A2C80, 22 bytes long.
Data: <vtkXMLImageDataR> 76 74 6B 58 4D 4C 49 6D 61 67 65 44 61 74 61 52
{1213} normal block at 0x022A2CD0, 21 bytes long.
Data: <vtkXMLFileReadTe> 76 74 6B 58 4D 4C 46 69 6C 65 52 65 61 64 54 65
{1212} normal block at 0x022A2D20, 20 bytes long.
Data: <vtkXMLDataSetWri> 76 74 6B 58 4D 4C 44 61 74 61 53 65 74 57 72 69
{1211} normal block at 0x022A2D60, 17 bytes long.
Send instant messages to your online friends http://uk.messenger.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061029/849e2b8c/attachment.htm>
More information about the vtkusers
mailing list