Board index » cppbuilder » de{*word*81} doesn't display any data

de{*word*81} doesn't display any data

Hello folks,
     I tried to debug a class which contains of member variables. When open
the watch window and see the value, I didn't see anything in it. However if
I assign the value to my local variable the value is there.
Does anybody have any idea how do I fix this.
It seems like the de{*word*81} cannot see  what's contain inside the class.

for instance:
AClass myclass;
myclass.member1 = 1;

when debug this, I don't seen anything on the myclass.member1.
however if I do this

int member = myclass.member1;

I can see the value of member is one.

smith

 

Re:de{*word*81} doesn't display any data


Quote
"Smith Tanny" <sta...@deis.com> writes:
> for instance:
> AClass myclass;
> myclass.member1 = 1;

> when debug this, I don't seen anything on the myclass.member1.
> however if I do this

> int member = myclass.member1;

> I can see the value of member is one.

What are you doing to "see" the data?  For example, if you create a
watch on this data, what is the expression you used for that entry?

--
Chris(TeamB);

Re:de{*word*81} doesn't display any data


I did the inspection on the class by putting the cursor on the syntax and
pressing  alt F5 (open up debug inspector, when I did this everything inside
the class is empty)  or also I usually copy and paste the syntax inside the
watch window. for instance "myclass.member1".

smith

"Chris Uzdavinis (TeamB)" <ch...@atdesk.com> wrote in message
news:3c62ea53$1_2@dnews...

Quote
> "Smith Tanny" <sta...@deis.com> writes:

> > for instance:
> > AClass myclass;
> > myclass.member1 = 1;

> > when debug this, I don't seen anything on the myclass.member1.
> > however if I do this

> > int member = myclass.member1;

> > I can see the value of member is one.

> What are you doing to "see" the data?  For example, if you create a
> watch on this data, what is the expression you used for that entry?

> --
> Chris(TeamB);

Re:de{*word*81} doesn't display any data


Quote
"Smith Tanny" <sta...@deis.com> writes:
> I did the inspection on the class by putting the cursor on the syntax and
> pressing  alt F5 (open up debug inspector, when I did this everything inside
> the class is empty)  or also I usually copy and paste the syntax inside the
> watch window. for instance "myclass.member1".

Can you post some _minimal_ (yet complete enough to compile & run)
program code with which I could try to reproduct this?

If possible, a step-by-step checklist of "things to do to see this
behavior" would be very helpful.  (where to set breakpoints, when you
add to the watch, etc.)

Something sounds funny about this, but it's still way too hard to tell
what is actually going on.

--
Chris(TeamB);

Re:de{*word*81} doesn't display any data


Hi Chis,
   Thanks for all your help, but I think I found the answer last night after
a 2 long days for struggling to fix this.
here is the sample code

class Claim
{
public :
    Member mClaimMember;

Quote
}

============
Aclass.h
============

Claim myClaim;
Member *memberPtr = &myClaim.mClaimMember;

=============
Bclass.cpp
=============
in here I try to do the inpect on memberPtr after myClaim class has been
populated but it is empty.
however after I include everything from  Aclass.h to Bclass.cpp
I can see the value.
Is this a bug in the BCB4??

smith

"Chris Uzdavinis (TeamB)" <ch...@atdesk.com> wrote in message
news:3c63231f$1_1@dnews...

Quote
> "Smith Tanny" <sta...@deis.com> writes:

> > I did the inspection on the class by putting the cursor on the syntax
and
> > pressing  alt F5 (open up debug inspector, when I did this everything
inside
> > the class is empty)  or also I usually copy and paste the syntax inside
the
> > watch window. for instance "myclass.member1".

> Can you post some _minimal_ (yet complete enough to compile & run)
> program code with which I could try to reproduct this?

> If possible, a step-by-step checklist of "things to do to see this
> behavior" would be very helpful.  (where to set breakpoints, when you
> add to the watch, etc.)

> Something sounds funny about this, but it's still way too hard to tell
> what is actually going on.

> --
> Chris(TeamB);

Other Threads