<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;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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="MsoNormal"><span style="color:#1F497D">Dear Matt and all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I made a simple MFC example to use ITK (<a href="http://user.engineering.uiowa.edu/~kyungmle/share/TestMFCITK2015.zip">http://user.engineering.uiowa.edu/~kyungmle/share/TestMFCITK2015.zip</a>). I am using MS
Windows 7, MS Visual C++ 2015, ITK-4.9.0, and CMake 3.4.3. When I click [Test]-[ITK] in the menu in Debug, x64 mode, the example clashes in itkImageFileReader.hxx. Can you check my source code? Thanks a lot!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Kit<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Lee, Kyungmoo <br>
<b>Sent:</b> Tuesday, March 01, 2016 4:24 PM<br>
<b>To:</b> 'Matt McCormick' <<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>><br>
<b>Cc:</b> <a href="mailto:community@itk.org">community@itk.org</a><br>
<b>Subject:</b> RE: [ITK] Memory leaks with ITK and MFC<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<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 border="0" width="1359" height="940" id="_x0000_i1026" src="cid:image001.png@01D17853.C8C49480"><o:p></o:p></p>
<p class="MsoPlainText">-----Original Message-----<br>
From: Matt McCormick [<a href="mailto:matt.mccormick@kitware.com">mailto: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">kyungmoo-lee@uiowa.edu</a>><br>
Cc: <a href="mailto:community@itk.org">community@itk.org</a><br>
Subject: Re: [ITK] Memory leaks with ITK and MFC<o:p></o:p></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>