C# program freezes without breakpoints
I'm implementing a program which gets text from various si开发者_运维技巧tes and checks which ones are most relevant to a query. The problem is that when I have breakpoints in my code it works perfectly well but without it, the program just freezes. Is this a memory issue? What can I do to solve this please?
THanks
Perhaps it's not the breakpoints that avoids your program from crashing, but the amount of time the application is stopped. Perhaps inserting some "sleep" will give you some useful insight about whats going on.
This may happen when your program interacts with thrid party libraries that behind the scenes performs asyncronous calls, or mays busy waits.
I have had a similar problem. Disabling "Enable property evaluation and other implicit function calls" in Options->Debugging->General changed the issue. For me it made it freeze all the time, much easier to debug.
精彩评论