Reputation: 67263
I was debugging an application which I took ownership of at work and was getting frequent StackOverflowException
s.
Examining the code, I saw a cycle as follows:
However, my colleagues used the application but do not seem to get any exceptions. I do when I am debugging the application and stepping through the code quite frequently.
Thanks
Upvotes: 0
Views: 179
Reputation: 43331
I can think about two situations when program can behave under debugger by different way:
Any code executed when Debugger.IsAttached returns true.
Tools - Options - Debugger - General. "Enable property evaluation and other implicit function calls" is checked. In this case, when the program runs under debugger, some properties are called to update debugger Watch window. This can change the program behavior and cannot be reproduced without debugger.
Upvotes: 1