Page MenuHomePhabricator | MITK

ImageGenerator::GenerateFromReference causes HEAP CORRUPTION
Open, Needs TriagePublic

Description

OS: Windows, VS 2017

Situation: Having a unit test that uses following line:

mitk::Image::pointer m_zMax = mitk::ImageGenerator::GenerateImageFromReference<double>(refImage, 0.95);

If this line is active we have an excpetion at the and of the test, when everything is cleand up and the test is pulled down.

The error says

Debug Error
HEAP CORRUPTION DETECTED: after Normal block (#ääää) at 0xSomething.
CRT detected that the application wrote to memory after end of heap buffer.

If this line is not part of the test everything works fine. (No corruption).

Event Timeline

floca created this task.Fri, Mar 8, 5:20 PM