开发者

Application.Exit() leaves debugger attached to something

开发者 https://www.devze.com 2023-03-28 23:33 出处:网络
When I call Application.Exit(), the app seems to quit, but the debugger remains attached to some process and I have to开发者_JAVA技巧 hit the stop button.

When I call Application.Exit(), the app seems to quit, but the debugger remains attached to some process and I have to开发者_JAVA技巧 hit the stop button.

I suspect this is because I'm running a TCP receive thread in the app, but aborting it on quit didn't seem to fix it, either.


Is it a background or foreground thread? Make it background, so it get's aborted on application quit.

Also, instead of hitting stop, pause the debugger, and see where in the code it is.

0

精彩评论

暂无评论...
验证码 换一张
取 消