Exception on BitmapFrame.Create (bug in WPF framework?)

后端 未结 4 1872
借酒劲吻你
借酒劲吻你 2021-01-11 16:17

I implemented a C# application that recevies frame RGB at framerate of 30fps.

The event of frame arrive is managed with this code:

void client_ColorFra         


        
4条回答
  •  青春惊慌失措
    2021-01-11 16:47

    I've come across this issue lately when dealing with images included in projects as Resources (BuildType=Resource in file properties). It seems to be some build related issue which makes the resources corrupt and causes what seems like random issues as WPF are loading them. Simply performing a clean/rebuild makes the error(s) go away. They may reappear when adding new images though but the same fix obviously applies.

提交回复
热议问题