Hi,
I'm using ievolution 5.0.0, .Net 4.5, visual studio 2015 and there is a reproducible error (vshost32.exe stoped working) if I use the ieMulti_Click event, LINQ-code to check the existence of a point (in my excample) in a list<point> and then alt+tab.
Form contains 1x ieMulti, 2x button.
private void button1_Click(object sender, EventArgs e)
{
ieMulti1.ImageList.AppendImage(@"test.jpg");
}
private void ieMulti1_Click(object sender, EventArgs e)
{
IEImage image = new IEImage();
//or load image with string, or copy ieMulti-image to ieView
}
private async void button2_Click(object sender, EventArgs e)
{
await Task.Run(() =>dostuff());
}
private void dostuff()
{
List<Point> Punkte = new List<Point>();
for (int i = 0; i < 30000; i++)
{
Point Punkt = new Point(i, i);
Punkte.Add(Punkt);
}
List<Point> Ouput = LFP(Punkte[0], Punkte);
}
private List<Point> LFP(Point P, List<Point> Input)
{
List<Point> Punkte = new List<Point>();
List<Point> Best = new List<Point>();
Best.Add(P);
bool b1 = new bool();
for (int i = 0; i < 20000; i++)
{
Point Punkt = new Point(0, 0);
Punkt = Input[i];
Punkte.Add(Punkt);
}
for (int s = 0; s < Punkte.Count - 1; s++)
{
for (int j = 0; j <= 100; j++)
{
Point Test = new Point(0, 0);
b1 = Punkte.Exists(p => p.X == Test.X && p.Y == Test.Y);
}
}
return Best;
}
If I remove "b1 = Punkte.Exists(p => p.X == Test.X && p.Y == Test.Y);" it works.
Same problem occourred (70% chance or so ;)) if I use a method with Lock.Bits and marshal.copy to copy pixel information in an array.
How can I avoid that? Is it maybe fixed in newer versions?
Thank you for any advice.