1. No symbols are loaded for any call stack frame. The source code can not be displayed. ContextSwitchDeadlock was detected
ANS:
The
ContextSwitchDeadlock doesn't necessarily mean your code has an issue, just that there is a potential. If you go to Debug > Exceptions in the menu and expand the "Managed Debugging Assistants", you will find ContextSwitchDeadlock is enabled. If you disable
this, VS will no longer warn you when items are taking a long time to process. In some cases you may validly have a long-running operation. It's also helpful if you are debugging and have stopped on a line while this is processing - you don't want it to complain
before you've had a chance to dig into an issue.
本文探讨了Visual Studio中出现的ContextSwitchDeadlock警告的原因及其解决办法。文章指出该警告并不一定意味着代码存在问题,而是表明可能存在上下文切换死锁的风险。通过禁用特定的调试助手可以避免此类警告。
2185

被折叠的 条评论
为什么被折叠?



