Please tell if i am in the wrong newsgroup.
What i am going to tell occurs rarely (several times in last year) but each
time it annoys me a lot. And it's annoying me NOW.
I wrote a project, which works fine so far. Then I want to add a public
member to a class and read by another class (the member is really simple -
say a boolean). I simply add the boolean, and in the read-class access the
value. Everything works fine in design-time in which code completion can
show me the new variable. I can build the executable as well.
However, when i run it, some strange behavior shown. The code seems not
getting the correct value. So I run into debug mode and access the
newly-added variable. And i get the following error msg:
"Error inspecting 'MyClass->new_variable': E2316 'new_variable' is not a
member of 'MyClass'"
I tried deleting all .obj files, .tds file, .~* files and made a full build
but it cannot solve the problem.
I tried creating a new project and add all my cpp and build it again but it
doesnt work /this time/. However, my teammate copy my project to his machine
and build it, the new variable can be accessed in debug mode (???). I copied
his updated project files (project.cpp, .bpr and .res) to mine and compiled
again but it fails.
But as i said this occurs rarely. At most cases this 'behavior' does not
occur.
I am using BCB6 on XP. Update patches applied.
Would anyone please tell me what's wrong with the program/IDE/etc? What
should i do now?
Thanks in advance.
I tried make a new project, add the modified class ONLY and try access the
new variable. It is ok.
My suggestion:
- don't use "precompiled headers"
- delete all temporary files
(*.bak;*.obj;*.csm;*.~*;*.#*;*.tds;*.dsk;*.res;.#*.*;*.ddp)
No real help, but ....
Detlef
www.seatec-gmbh.com
"Alex Liu" <ale...@hket.com> schrieb im Newsbeitrag
news:4253b4b5$1...@newsgroups.borland.com...
Mark
"Alex Liu" <ale...@hket.com> wrote in message
news:4253b4b5$1...@newsgroups.borland.com...
Thanks.
--
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html