# 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:** 13

<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 8, 2019, 12:19pm UTC](https://discourse.itk.org/t/memory-leaks-istanziating-itkimagefilereader-in-mfc/2388/13 "2019-11-08T12:19:22Z")

</div>

Hi Mihail,  
I included the file you attached but doing so I got much much more memory leaks.  
I didn’t create the solution of my project using CMake, because I don’t have this chance, since the solution already exists and I have to make only an upgrade of the ITK library.  
I have another question: in my installed files of the ITK library I don’t have this itkImageIOFactoryRegisterManager.h….of course this file is present in the original source of ITK downloaded from the website. Why? I built ITK using CMake default configuration from the src files downloaded.  
Is there any option in CMake to enable?  
Tks

---

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