Board index » cppbuilder » Class Member Variables

Class Member Variables

We seem to be running into a rather weird problem on a large project that
was created with Builder 3.0 (patch applied).

In a number of cases member class variables are not showing up if you try to
inspect or evaluate them.  When you try, you get a message that says member
variable not defined.

What's odd is that it seems random.  If I have 6 member variables in a
class, maybe two or three will report this message, and the others can be
inspected just fine.

We thought at first it was only happening with character variables, but
today we had it happen on some integer values.

We've tried deleting the .tds file and all the individual object files and
rebuilding the project, but this problem still occurs.

Has anyone run into this???

 

Re:Class Member Variables


In the Project|Options|Advanced compiler, try disabling register
variables.

HTH,
Alex

Quote
Bill Wright wrote:

[snip]

--
HotSend - portable documents technology
http://www.hotsend.com/
eFax - get your faxes via email - Free !
http://www.efax.com

Re:Class Member Variables


Thanks!.
I forgot to mention that the vairables work!  They just cannont be inspected
or evaluated.

I was wondering if the compiler keeps a list of variables, etc., somewhere
and with the size of our project, maybe it runs out of space to store it's
"hooks".

Maybe it's a compiler or linker option that needs to be changed, but danged
it I can find it!!!!

Quote
Wayne Merry wrote in message <79qc58$6r...@forums.borland.com>...

[snip]
The worst thing was
Quote
>that often the new properties would show up in the object inspector, but
the
>run time version of the component was pre-rebuild (for that project
only!!!)

>Weird... I hope that we don't run into it with BCB 3, of which we are
>currently moving to, but it doesn't sound good.

>Wayne Merry
>wme...@nospam.com (replace 'nospam' with 'bigpond')

>Bill Wright wrote in message <79o7hp$3...@forums.borland.com>...
>>We seem to be running into a rather weird problem on a large project that
>>was created with Builder 3.0 (patch applied).

>>In a number of cases member class variables are not showing up if you try
>to
>>inspect or evaluate them.  When you try, you get a message that says
member
>>variable not defined.

>>What's odd is that it seems random.  If I have 6 member variables in a
>>class, maybe two or three will report this message, and the others can be
>>inspected just fine.

>>We thought at first it was only happening with character variables, but
>>today we had it happen on some integer values.

>>We've tried deleting the .tds file and all the individual object files and
>>rebuilding the project, but this problem still occurs.

>>Has anyone run into this???

Re:Class Member Variables


We have had this problem with BCB 1, with components written in house. It
shows up esp. when the project that uses the component was open, when we
rebuilt the component library to update changes to our components. Those
changes wouldn't show up in the program ...SOMETIMES... We would get errors
exactly as you described when we tried to access new properties or methods.

Solution... Sometimes we had to restore from a backup. We for the life of
us, could not work out where the project stored the old library file. If you
opened a new project, then everything was up to date; reopent the old
project; and the component was back in the dark ages. The worst thing was
that often the new properties would show up in the object inspector, but the
run time version of the component was pre-rebuild (for that project only!!!)

Weird... I hope that we don't run into it with BCB 3, of which we are
currently moving to, but it doesn't sound good.

Wayne Merry
wme...@nospam.com (replace 'nospam' with 'bigpond')

Quote
Bill Wright wrote in message <79o7hp$3...@forums.borland.com>...
>We seem to be running into a rather weird problem on a large project that
>was created with Builder 3.0 (patch applied).

>In a number of cases member class variables are not showing up if you try
to
>inspect or evaluate them.  When you try, you get a message that says member
>variable not defined.

>What's odd is that it seems random.  If I have 6 member variables in a
>class, maybe two or three will report this message, and the others can be
>inspected just fine.

>We thought at first it was only happening with character variables, but
>today we had it happen on some integer values.

>We've tried deleting the .tds file and all the individual object files and
>rebuilding the project, but this problem still occurs.

>Has anyone run into this???

Other Threads