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

<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, 11:21pm UTC](https://discourse.itk.org/t/memory-leaks-istanziating-itkimagefilereader-in-mfc/2388/11 "2019-11-07T23:21:55Z")

</div>

Sorry guys, maybe I was not clear. I am attaching the console application that gives me the memory leaks. I didn’t use anymore MFC in order to isolate the problem.  
In order to build it you should have Visual Studio 2015. I am working on Windows 10.  
Of course, before building you should replace the additional include directories and additional include libraries with your ITK 5.0.1 path.  
Let me know if you can have the leaks.  
Tks very much  
Lorenzo[ConsoleApplication1.zip](https://discourse.itk.org/uploads/short-url/jokBYuG5Yhru9CoxNK6ANzZBqHS.zip) (5.7 KB)

---

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