<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">Hi,<br><br>I'm currently trying to free the memory taken up by my DICOM loading function (vtkDICOMImageReader). The problem is that I call Delete on everything that I've instantiated, but the ~700MB still remains in the RAM.<br><br>The vtkVolume that I read the object into is global, so I've got a button that removes it from the renderer and then deletes it, like so...<br><br> this->pvtkRenderer->RemoveActor(this->volume);<br> this->pvtkRenderer->RemoveAllViewProps(); //for good measure :)<br> this->volume->Delete();<br><br><br>What else would I have to do? I've called Delete on everything in the load function, and I've deleted the volume object itself..... so.... I don't know.<br><br>I realise that the Delete funtion only decreases the counter for that object, but all i'm doing is loading in a DICOM object and deleting it.... so nothing else should be using it.<br><br>Maybe there is a Cleanup function or something??<br><br><br><br>Thanks,<br>Cameron.<br></div><br><div></div><br><br /><hr />Grab it. <a href='http://mycareer.com.au/?s_cid=596065 ' target='_new'>You dream job is up for grabs.</a></body>
</html>