R
Robert Thompson
Hello,
I'm running into a strange problem involving identically-named
variables in multiple projects. I'm using Visual Studio 2005, and have
a solution with three projects under it. Two of the three projects
have variables with the same name. These variables are both global to
their class. The problem is that when variable "foo" in Project 1 is
set to "bar," variable foo in Project 2 also immediately takes on value
bar. This occurs regardless of whether foo is references simply as
foo, or as this.foo.
I can't figure out how this is occuring, as the projects do not contain
references to each other (they are completely independent projects),
but the debugger shows that this is the case and when running without
debugging I get strange behavior that I suspect is caused by this.
It's a simple matter to rename one project's variable for now, but I
would like a more permanent solution.
Thanks for your help!
I'm running into a strange problem involving identically-named
variables in multiple projects. I'm using Visual Studio 2005, and have
a solution with three projects under it. Two of the three projects
have variables with the same name. These variables are both global to
their class. The problem is that when variable "foo" in Project 1 is
set to "bar," variable foo in Project 2 also immediately takes on value
bar. This occurs regardless of whether foo is references simply as
foo, or as this.foo.
I can't figure out how this is occuring, as the projects do not contain
references to each other (they are completely independent projects),
but the debugger shows that this is the case and when running without
debugging I get strange behavior that I suspect is caused by this.
It's a simple matter to rename one project's variable for now, but I
would like a more permanent solution.
Thanks for your help!