<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:"맑은 고딕";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@맑은 고딕";
panose-1:2 11 5 3 2 0 0 2 0 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:85.05pt 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText">Hi Matt,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">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!!!<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Kit<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><img width="1359" height="940" id="_x0000_i1033" src="cid:image001.png@01D173D6.C10A2C40"><o:p></o:p></p>
<p class="MsoPlainText">-----Original Message-----<br>
From: Matt McCormick [mailto:matt.mccormick@kitware.com] <br>
Sent: Tuesday, March 01, 2016 4:04 PM<br>
To: Lee, Kyungmoo <kyungmoo-lee@uiowa.edu><br>
Cc: community@itk.org<br>
Subject: Re: [ITK] Memory leaks with ITK and MFC</p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Hi Kit,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">We are in the process of deprecating InsightApplications.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">However, if you create an MFC application that uses ITK, there should be no issues or memory leaks.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">HTH,<o:p></o:p></p>
<p class="MsoPlainText">Matt<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">On Mon, Feb 29, 2016 at 3:32 PM, Lee, Kyungmoo <<a href="mailto:kyungmoo-lee@uiowa.edu"><span style="color:windowtext;text-decoration:none">kyungmoo-lee@uiowa.edu</span></a>> wrote:<o:p></o:p></p>
<p class="MsoPlainText">> Dear all,<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> When I run InsightApplications-4.8.0/ItkMFC using ITK-4.8.2, MS
<o:p></o:p></p>
<p class="MsoPlainText">> Windows, and Visual Studio 2010/2012, I found memory leaks. Other
<o:p></o:p></p>
<p class="MsoPlainText">> persons in the following links have the same problem. I cannot find
<o:p></o:p></p>
<p class="MsoPlainText">> any solution on the web. Please help me. Thank you.<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> <a href="https://cmake.org/pipermail/insight-users/2007-July/022885.html">
<span style="color:windowtext;text-decoration:none">https://cmake.org/pipermail/insight-users/2007-July/022885.html</span></a><o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> <a href="http://itk-insight-users.2283740.n2.nabble.com/No-one-knows-the-ITK-MF">
<span style="color:windowtext;text-decoration:none">http://itk-insight-users.2283740.n2.nabble.com/No-one-knows-the-ITK-MF</span></a><o:p></o:p></p>
<p class="MsoPlainText">> C-memory-leak-problem-td7583950.html<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> Kit<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">> _______________________________________________<o:p></o:p></p>
<p class="MsoPlainText">> Community mailing list<o:p></o:p></p>
<p class="MsoPlainText">> <a href="mailto:Community@itk.org"><span style="color:windowtext;text-decoration:none">Community@itk.org</span></a><o:p></o:p></p>
<p class="MsoPlainText">> <a href="http://public.kitware.com/mailman/listinfo/community">
<span style="color:windowtext;text-decoration:none">http://public.kitware.com/mailman/listinfo/community</span></a><o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
</div>
</body>
</html>