Hi blowekamp,
I tried a simple default console application using VS2015 (New Project/Win 32 Console application) and left all default configuration properties. So without using MFC.
Then I added the dependencies on ITK (built with CMake with its default configuration as downloaded by the website). So the additional include folder and the additional input libraries with all the list of the .lib from itk.
Finally I added the following lines before the main section
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
and the following line before exit from the main section
_CrtDumpMemoryLeaks();
in order to get the memory leaks.
Last thing I added #include “itkImageFileReader.h” after #include “stdafx.h”
Then I get memory leaks (just including the file).
How’s that possible?