Hi Matt,
thanks for your answer.
I tried with a console application too and I Always got memory leaks.
This is a code example that I used:
#include "stdafx.h"
#include "itkImageFileReader.h"
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
int main()
{
system("PAUSE");
_CrtDumpMemoryLeaks();
return 0;
}
As you see in this main I don’t do anything. Just including iktImageFileReader I get the following memory leaks in the output window:
Detected memory leaks!
Dumping objects ->
{158} normal block at 0x0000022B5135C0A0, 16 bytes long.
Data: < Xy > 10 58 79 8B F6 7F 00 00 00 00 00 00 00 00 00 00
{157} normal block at 0x0000022B5135E390, 40 bytes long.
Data: < 5Q+ 5Q+ > 90 E3 35 51 2B 02 00 00 90 E3 35 51 2B 02 00 00
{156} normal block at 0x0000022B5135C050, 16 bytes long.
Data: < Wy > F8 57 79 8B F6 7F 00 00 00 00 00 00 00 00 00 00
{155} normal block at 0x0000022B5135E630, 40 bytes long.
Data: <0 5Q+ 0 5Q+ > 30 E6 35 51 2B 02 00 00 30 E6 35 51 2B 02 00 00
{154} normal block at 0x0000022B5135BFB0, 16 bytes long.
Data: <@ 6Q+ > 40 19 36 51 2B 02 00 00 00 00 00 00 00 00 00 00
{153} normal block at 0x0000022B513396B0, 112 bytes long.
Data: < 3Q+ 3Q+ > B0 96 33 51 2B 02 00 00 B0 96 33 51 2B 02 00 00
{152} normal block at 0x0000022B5135C8C0, 16 bytes long.
Data: <( 6Q+ > 28 19 36 51 2B 02 00 00 00 00 00 00 00 00 00 00
{151} normal block at 0x0000022B5133B990, 112 bytes long.
Data: < 3Q+ 3Q+ > 90 B9 33 51 2B 02 00 00 90 B9 33 51 2B 02 00 00
{150} normal block at 0x0000022B5135BA10, 16 bytes long.
Data: < 6Q+ > 10 19 36 51 2B 02 00 00 00 00 00 00 00 00 00 00
{149} normal block at 0x0000022B5133A390, 112 bytes long.
Data: < 3Q+ 3Q+ > 90 A3 33 51 2B 02 00 00 90 A3 33 51 2B 02 00 00
{148} normal block at 0x0000022B51361910, 72 bytes long.
Data: < 5Q+ 3Q+ > 10 BA 35 51 2B 02 00 00 90 A3 33 51 2B 02 00 00
Let me know what I am doing wrong. I built Itk 5.0.1 using Cmake 3.15.3 with the default configuration.
Regards,
Lorenzo