Invalid cross-thread access issue

前端 未结 3 958
暖寄归人
暖寄归人 2020-12-01 04:07

I have two ViewModel classes : PersonViewModel and PersonSearchListViewModel. One of the fields PersonViewModel implements is a profile image that is downloaded via WCF(cach

3条回答
  •  爱一瞬间的悲伤
    2020-12-01 04:32

    I believe you are having a cross threading issue with the UI thread.

    Editing the bound object may force an update of the UI on the worker thread, which cannot succeed. You will likely need to do the InvokeRequired/Invoke hokey-pokey whenever you update the bound class.

    You said you knew this already, but for reference:

    MSDN on thread-safe calls to UI

提交回复
热议问题