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! 3 1195
"Robert Thompson" <rt**********@hotmail.com> wrote in message 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.
Does renaming help? Are you using any of the variables in API calls? Are
these 2 projects running in the same process?
Michael
Hi Robert,
can you post a small code example which exhibits the problem, there could
be many reasons for what you are seeing and an example would make it clearer.
Thanks
Mark http://www.markdawson.org
"Robert Thompson" wrote: 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!
Robert Thompson wrote: 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.
It sounds unlikely to be happening as you have described - I suspect
you have debugger issues.
As Mark said, if you could post a short but complete program which
demonstrates the problem, that would help enormously.
Jon This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: James |
last post by:
Hi
I am having some trouble getting a asp page to load. Im a
noob to the asp side. I have followed knowledege base
Article 301305. I am running 2000 adv, IIS 5.0
I have the following...
|
by: Jacek Dziedzic |
last post by:
Hi!
First of all, I hope my problem is not too loosely tied to the
"standard C++" that is the topic of this group.
I have some code that exhibits a strange behaviour: on
one computer, where I...
|
by: Paul C |
last post by:
Hello, everybody. I am having trouble running some of the VS.NET samples, specifically the CarSelector web app, which is very simple. The symptom is that the web controls (drop down listboxes and...
|
by: Alexandre Jaquet |
last post by:
Hi does anybody know how to solve my trouble, when I try to create a
MS Office project I always got trouble. I can't create office project
when I try to create one vs.net restart ... :s
|
by: Jim Bancroft |
last post by:
Hi everyone,
I'm running into a problem with my ASP.Net application. I've just created a
new aspx page which uses some new components of mine that inherit from
ServicedComponent and are...
|
by: Daniel Walzenbach |
last post by:
Hi,
I have a web application which sometimes throws an “out of memory”
exception. To get an idea what happens I traced some values using performance
monitor and got the following values (for...
|
by: Olivier BESSON |
last post by:
Hello,
I have a web service of my own on a server (vb.net). I must declare it with
SoapRpcMethod to be used with JAVA.
This is a simple exemple method of my vb source :
...
|
by: JLupear |
last post by:
I am having trouble with my code again, I had prepared a question and the code to upload, however I am having trouble posting it, are there limits to the amount of lines you can post?
I split it...
|
by: daveman |
last post by:
Hello,
I'm encountering a "Blue Screen of Death" when I try to send data to a bluetooth sensor via a serial port, using the MSCOMM ActiveX object. I was wondering if anyone has any ideas how to...
|
by: mrchatgroup |
last post by:
news from
http://www.mrchat.net/myblog/myblog/small-accidents-mean-big-trouble-for-supercollider.html
Small Accidents Mean Big Trouble for Supercollider
Image
Scientists expect startup...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |