# Memory leaks istanziating itkImageFileReader in MFC

**URL:** https://discourse.itk.org/t/memory-leaks-istanziating-itkimagefilereader-in-mfc/2388
**Category:** Uncategorized
**Created:** [November 6, 2019, 4:48pm UTC](https://discourse.itk.org/t/memory-leaks-istanziating-itkimagefilereader-in-mfc/2388 "2019-11-06T16:48:12Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Lorenzo1980](https://discourse.itk.org/letter_avatar_proxy/v4/letter/l/b19c9b/32.png) [@Lorenzo1980](https://discourse.itk.org/u/Lorenzo1980)
#### Post date: [November 7, 2019, 3:58pm UTC](https://discourse.itk.org/t/memory-leaks-istanziating-itkimagefilereader-in-mfc/2388/7 "2019-11-07T15:58:54Z")

</div>

Is there any full example on how to do that? I’m not expert about CMake so I don’t know what is the simplest way to do that. Can you suggest any link?  
Keep in mind that with the previous versions of ITK I didn’t have any memory leaks, and the usage was the same….building ITK shared libs using CMake and then adding include libraries/header files in my MFC custom application.  
Tks,  
Lorenzo

---

_[View the full topic](https://discourse.itk.org/t/memory-leaks-istanziating-itkimagefilereader-in-mfc/2388)._
