Hello,
I have a problem when using the getscanline() method.
I wrote simple program, which contains the following (IEvolution 5.0.0):
IEImage Bild = new IEImage();
ieViewer1.Image.CopyImageTo(Bild);
int size = Bild.Height * Bild.Width * 3;
byte[] data = new byte[size];
for (int i = 0; i < Bild.Height; i++)
{
Marshal.Copy(Bild.GetScanline(i), data, i * (Bild.Width * 3), Bild.Width * 3);
}
Everything else in code is just open file, text output etc.
While the result is correct, the application crashes when leaving the programm with "Exception Code: c000041d".
And rarely it crashes while doing nothing. Open Image -> click button -> calculating things -> everything is fine -> calculating a lot of things for 10 min -> everything is fine -> finished calculation -> switching to browser -> programm still open doing nothing -> a few seconds or minutes later: crash.
But not on every system.
Win 8.1 laptop: crash
Win 10 PC 1: crash
Win 10 PC 2: crash
Win 7 PC 1: works fine
Win 7 PC 2: works fine
Virtual Box Win 10: works fine
Am I doing something wrong?