Mailing Lists: Apple Mailing Lists

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

crashes after changing signatures of virtual functions / virtual inherited classes



Hi,

I am experiencing crashes in my code at various places after editing headerfiles of classes which have virtual functions, or where one of their base-classes are virtual inherited. This occurs, if I add, remove or change a virtual function signature.

Calling the modified virtual function leads to a crash, for example inside dynamic_cast, or inside the newly added virtual function or only the base-class's function is called, not the inherited function.

So something went wrong with the object's vtable.

If I clean the project completely and recompile everything, everything works stable and as expected, so there must be something bogus when compiling / linking changed code.

Most of the objects are created by an object-factory which register for every objecttype a template-object, which returns a newly created object.

I am bit stuck for now, I am not an xcode/gcc expert to narrow down the problem, my code works fine on Visual c++, so does anybody has an idea of what is going wrong? (cleaning and rebuilding the whole project is not an option)

Thanks in advance!

Stephan


p.s.: I am using XCode 2.3, i686-apple-darwin8-gcc-4.0.1 on a Max OS X10.4.7, PPC & Intel



_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


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.