<div>Thanks for looking into this. I still haven't solved this issue.</div><div> </div><div>The following is the memory leak log from VS2010 output:</div><div> </div><div>Detected memory leaks!<br>Dumping objects -><br>
{769} normal block at 0x09F40040, 1208320 bytes long.<br> Data: < P G P G P G P G> 00 50 C3 47 00 50 C3 47 00 50 C3 47 00 50 C3 47 <br>Object dump complete.</div><div> </div><div>Then I stopped at {769} where is the filter->update(), the call stack log is as following:</div>
<div> </div><div>msvcr100d.dll!_heap_alloc_dbg_impl(unsigned int nSize, int nBlockUse, const char * szFileName, int nLine, int * errno_tmp) Line 393 C++<br> msvcr100d.dll!_nh_malloc_dbg_impl(unsigned int nSize, int nhFlag, int nBlockUse, const char * szFileName, int nLine, int * errno_tmp) Line 239 + 0x19 bytes C++<br>
msvcr100d.dll!_nh_malloc_dbg(unsigned int nSize, int nhFlag, int nBlockUse, const char * szFileName, int nLine) Line 302 + 0x1d bytes C++ <br> msvcr100d.dll!_malloc_dbg(unsigned int nSize, int nBlockUse, const char * szFileName, int nLine) Line 160 + 0x1b bytes C++<br>
mfc100ud.dll!operator new(unsigned int nSize) Line 321 + 0x10 bytes C++<br> SA_Sgmt.exe!operator new[](unsigned int count) Line 6 + 0x9 bytes C++<br> SA_Sgmt.exe!itk::ImportImageContainer<unsigned long,float>::AllocateElements(unsigned long size) Line 178 + 0x19 bytes C++<br>
SA_Sgmt.exe!itk::ImportImageContainer<unsigned long,float>::Reserve(unsigned long size) Line 86 + 0x13 bytes C++<br> SA_Sgmt.exe!itk::Image<float,2>::Allocate() Line 52 C++<br> SA_Sgmt.exe!itk::ImageSource<itk::Image<float,2> >::AllocateOutputs() Line 216 + 0x26 bytes C++<br>
SA_Sgmt.exe!itk::ReconstructionImageFilter<itk::Image<float,2>,itk::Image<float,2>,std::greater<float> >::GenerateData() Line 112 + 0x12 bytes C++ <br></div><div>When I commented the filter->update(), I don't see memory leak reported.</div>
<div> </div><div>I hope those information can give us more ideas.</div><div> </div><div>Thanks a lot,</div><div>Tina</div><div> </div><div><br> </div><div class="gmail_quote">On Sun, Sep 18, 2011 at 6:39 AM, Richard Beare <span dir="ltr"><<a href="mailto:richard.beare@gmail.com">richard.beare@gmail.com</a>></span> wrote:<br>
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">I've run a couple of tests with the mac leak detector and didn't see anything.<br>
<div class="im"><br>
2011/9/17 Gaëtan Lehmann <<a href="mailto:gaetan.lehmann@jouy.inra.fr">gaetan.lehmann@jouy.inra.fr</a>>:<br>
><br>
</div><div><div></div><div class="h5">> Hi,<br>
><br>
> The memory leak message is not more detailed than that?<br>
> I'm afraid we can't do much with that, unfortunately...<br>
><br>
> Regards,<br>
><br>
> Gaëtan<br>
><br>
><br>
> Le 14 sept. 11 à 18:11, qi yang a écrit :<br>
><br>
>> Hi,<br>
>><br>
>> I have a memory leaking problem bothered me for hours...<br>
>><br>
>> My VS2010 detected a big memory leak after "filter->Update()" of<br>
>> ReconstructionByDilationImageFilter.<br>
>> The related code is as following:<br>
>> typedef itk::ReconstructionByDilationImageFilter<ImageType, ImageType><br>
>> FilterType;<br>
>><br>
>> FilterType::Pointer filter = FilterType::New();<br>
>><br>
>> filter->SetMarkerImage(markerImage);<br>
>><br>
>> filter->SetMaskImage(maskImage);<br>
>><br>
>> filter->Update();<br>
>><br>
>> Do I need to release something after using the filter? What's the related<br>
>> function?<br>
>><br>
>> Thanks for any tips!!<br>
>><br>
>> Thanks,<br>
>> Tina<br>
>> _____________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Kitware offers ITK Training Courses, for more information visit:<br>
>> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
>><br>
>> Please keep messages on-topic and check the ITK FAQ at:<br>
>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
> --<br>
> Gaëtan Lehmann<br>
> Biologie du Développement et de la Reproduction<br>
> INRA de Jouy-en-Josas (France)<br>
> tel: <a href="tel:%2B33%201%2034%2065%2029%2066" value="+33134652966">+33 1 34 65 29 66</a> fax: 01 34 65 29 09<br>
> <a href="http://mima2.jouy.inra.fr" target="_blank">http://mima2.jouy.inra.fr</a> <a href="http://www.itk.org" target="_blank">http://www.itk.org</a><br>
> <a href="http://www.bepo.fr" target="_blank">http://www.bepo.fr</a><br>
><br>
><br>
> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
</div></div></blockquote></div><br>