System.ObjectDisposedException

后端 未结 2 1324
南方客
南方客 2020-12-06 10:24

I am running some windows application and it\'s working for few days then stop working with no error. Now i found in event viewer this error. Maybe anyone have any idea what

2条回答
  •  囚心锁ツ
    2020-12-06 10:54

    Something is accessing an object that has been disposed. Often this can happen if you have multi-threading on a form. You start the backgroundworker/thread/timer, and then dispose the form. When the backgroundworker/thread/timer tries to update the form in some way, you get this exception.

提交回复
热议问题