Application.Exit() leaves debugger attached to something
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.
精彩评论