开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜