S
Stefan Hoffmann
hi @all,
I've have this working piece of code in an async callback function used:
private void SetCount()
{
if (listView.InvokeRequired)
{
listView.Invoke((MethodInvoker)(() => SetCount()));
}
else
{
listItem.SubItems[1].Text = list.Count.ToString();
}
}
Can this produce an infinite loop under some circumstances?
I've seen similar in the net, but no comments about termination...
mfG
--> stefan <--
I've have this working piece of code in an async callback function used:
private void SetCount()
{
if (listView.InvokeRequired)
{
listView.Invoke((MethodInvoker)(() => SetCount()));
}
else
{
listItem.SubItems[1].Text = list.Count.ToString();
}
}
Can this produce an infinite loop under some circumstances?
I've seen similar in the net, but no comments about termination...
mfG
--> stefan <--