I concur...
Some common problems can include:
-> "Hidden virtual functions" - you didn't include the "virtual" keyword in your
class so you effectively replaced the virtual
function with a non-virtual function of same name.
-> Name aliasing - somewhere, in all the objects included/inherited in the class you
are decending from could be a function of
identical name that is being called instead...
A behaviour I've found unique to Codewarrior involves the "local this pointer...", and
the effect is that once you are in a function
in the base class, the "this" pointer is truncated to that base class, so local calls
to overloaded functions won't call yours. The
work around is to redesign your code so that you only call overloaded functions from
outside the base class entirely.
Naturally, step 1 is figuring out where the code is going. :)
Fergal Moran wrote:
> Are you sure that you have declared your virtual function correctly - it
> sounds maybe as if the breakpoint is not breaking because the derived
> function is not the one being called - can you post some code please?
>
> -----Original Message-----
> From: Edward Ye [mailto:[EMAIL PROTECTED]]
> Sent: 11 January 2001 07:56
> To: Palm Developer Forum
> Subject: I can not debug derived class in C++. Help
>
> Hi,all
> Pls help me.
> I am writing program in C++.
> I set my breakpoint in one virtual function of a derived class,But it
> doesn't stop there, while breakpoint in base class function is OK. What is
> the point?
> I am eager to get ur answer.
> Thanks a lot.
>
> Rgs.
>
> Edward
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see
>http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/