<div dir="ltr"><div><div>Hi Kit, <br><br></div><div>Thanks for sharing the screenshot.<br><br></div><div>We can see that you created the files TestOCTLib2012.h, TestOCTLib2012View.h and TestOCTLib2012Doc.h. </div><div><br></div>But, to better understand the issue (if any), I suggest you either share the source code of your project or create a minimal example allowing to reproduce the problem.<br><br></div><div>Creating a minimal example would be ideal, it could then be added as a test within ITK.<br><br></div><div>Hth<br></div><div>Jc<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 1, 2016 at 5:24 PM, Lee, Kyungmoo <span dir="ltr"><<a href="mailto:kyungmoo-lee@uiowa.edu" target="_blank">kyungmoo-lee@uiowa.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div>
<p>Hi Matt,<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Thank you for replying. I would like to use ITK in my MFC application. It has another memory-related problem in my application (See the following figure). I guess that there is a conflict between ITK smart pointer and MFC structure.
If you fix InsightApplications-4.8.0/ItkMFC, it would be a good reference for my MFC programming. Thank you so much!!!<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Kit<u></u><u></u></p>
<p><u></u> <u></u></p>
<p><img src="cid:image001.png@01D173D6.C10A2C40" height="940" width="1359"><u></u><u></u></p><div><div>
<p>-----Original Message-----<br>
From: Matt McCormick [mailto:<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>] <br>
Sent: Tuesday, March 01, 2016 4:04 PM<br>
To: Lee, Kyungmoo <<a href="mailto:kyungmoo-lee@uiowa.edu" target="_blank">kyungmoo-lee@uiowa.edu</a>><br>
Cc: <a href="mailto:community@itk.org" target="_blank">community@itk.org</a><br>
Subject: Re: [ITK] Memory leaks with ITK and MFC</p>
<p><u></u> <u></u></p>
<p>Hi Kit,<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>We are in the process of deprecating InsightApplications.<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>However, if you create an MFC application that uses ITK, there should be no issues or memory leaks.<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>HTH,<u></u><u></u></p>
<p>Matt<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>On Mon, Feb 29, 2016 at 3:32 PM, Lee, Kyungmoo <<a href="mailto:kyungmoo-lee@uiowa.edu" target="_blank"><span style="color:windowtext;text-decoration:none">kyungmoo-lee@uiowa.edu</span></a>> wrote:<u></u><u></u></p>
<p>> Dear all,<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> When I run InsightApplications-4.8.0/ItkMFC using ITK-4.8.2, MS
<u></u><u></u></p>
<p>> Windows, and Visual Studio 2010/2012, I found memory leaks. Other
<u></u><u></u></p>
<p>> persons in the following links have the same problem. I cannot find
<u></u><u></u></p>
<p>> any solution on the web. Please help me. Thank you.<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> <a href="https://cmake.org/pipermail/insight-users/2007-July/022885.html" target="_blank">
<span style="color:windowtext;text-decoration:none">https://cmake.org/pipermail/insight-users/2007-July/022885.html</span></a><u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> <a href="http://itk-insight-users.2283740.n2.nabble.com/No-one-knows-the-ITK-MF" target="_blank">
<span style="color:windowtext;text-decoration:none">http://itk-insight-users.2283740.n2.nabble.com/No-one-knows-the-ITK-MF</span></a><u></u><u></u></p>
<p>> C-memory-leak-problem-td7583950.html<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> Kit<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> _______________________________________________<u></u><u></u></p>
<p>> Community mailing list<u></u><u></u></p>
<p>> <a href="mailto:Community@itk.org" target="_blank"><span style="color:windowtext;text-decoration:none">Community@itk.org</span></a><u></u><u></u></p>
<p>> <a href="http://public.kitware.com/mailman/listinfo/community" target="_blank">
<span style="color:windowtext;text-decoration:none">http://public.kitware.com/mailman/listinfo/community</span></a><u></u><u></u></p>
<p>><u></u> <u></u></p>
</div></div></div>
</div>
<br>_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div><a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849</a><br></div>
</div></div>