control.BeginInvoke() fails to call the delegate

会有一股神秘感。 提交于 2019-12-01 10:49:37

The code looks fine to me as posted. If this does not match your code in use then I would suggest looking for one of the following:

1) If your consuming task takes longer then the FiveSeconds method to give the appearance of not being called every time

2) If the combination of the consuming task and Updating the UI results in the appearance of the method not being called every time

3) If any of the code not shown in the consuming task could alter the value of executing (or exit the method because it can be set to false)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!