Killing all threads that opened by application

后端 未结 7 861
长发绾君心
长发绾君心 2020-12-06 03:58

I have some really big application mixture of c# and j#.

Sometimes when I close it, there are some threads that are not closed and they are hanging in the task mana

7条回答
  •  被撕碎了的回忆
    2020-12-06 04:38

    I was having similar issue while closing form/application. It was not really exiting from the debug mode and comes to the design mode. Following resolves my issue.

    1. Followed the link. Windows Form Application, Thread won't stop
    2. Step one did not resolved it. Environment.Exit(0); - Resolves and worked fine.

提交回复
热议问题