InvalidOperationException - object is currently in use elsewhere - red cross

前端 未结 4 1447
慢半拍i
慢半拍i 2020-12-03 16:38

I have a C# desktop application in which one thread that I create continously gets an image from a source(it\'s a digital camera actually) and puts it on a panel(panel.Image

4条回答
  •  無奈伤痛
    2020-12-03 17:27

    I think this is multithreading problem Use windows golden rule and update the panel in the main thread use panel.Invoke This should overcome cross threading exception

提交回复
热议问题