Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PB Debugger and Virtual Bases Problem



Are there any know issues with how the PB Debugger handles c++ classes derived from virtual bases?

The debugger keeps stalling on me every time it stops at a breakpoint in some code somewhere in a hierarchy based on a virtual base class. It says something like:

Error from Debugger: Cannot access memory at address = 0x0

I've had to use other methods to debug the class involved which compiles and now after some painstaking debugging works really well so I'm beginning to assume it can't be the code.

The object concerned is designed as follows:

class Base;
class Talk : public virtual Base;
class View : public virtual Base;
class Dial : public View;
class Page : public Dial;
class Object : public Talk, public Page;

This is correct according c++ law as far as I'm concerned and it compiles and runs according to specs, so I'm assuming at present that it's a bug in PB. Has this happened to anyone else here?

Cheers Geoff %^>
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.