I have a curious problem with debugging my XNA project. Whenever I hit a certain breakpoint and start browsing the “Locals” window, the whole process and the debugger terminate without giving any notice as to why. The trigger might be reaching a field with a red exclamation mark that says “Function evaluation was aborted.”
I am using no explicit multithreading in my code, therefore I am befuddled how the process can terminate (seemingly as though it correctly reached the end) when it actually doesn’t run.
Thanks for any help.
This is occurring because your accessor is infinitely recursive, causing a stack overflow.
Change this:
To this:
This is actually a fairly common thing in Visual Studio C#, it’s very annoying, the auto-complete feature will always prefer the accessor name over the member name, even when you’re within the accessor itself. I figured after 5 years of this Microsoft would’ve fixed it by now.
EDIT: n/m I see you already came to this conclusion in your own question. I guess I should read the entire thing first, I jumped the gun.