• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
crashes after changing signatures of virtual functions / virtual inherited classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

crashes after changing signatures of virtual functions / virtual inherited classes


  • Subject: crashes after changing signatures of virtual functions / virtual inherited classes
  • From: Stephan Huber <email@hidden>
  • Date: Thu, 03 Aug 2006 18:03:45 +0200

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: This email sent to email@hidden
  • Follow-Ups:
    • Re: crashes after changing signatures of virtual functions / virtual inherited classes
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Visual Studio-style indent
  • Next by Date: Re: Visual Studio-style indent
  • Previous by thread: Re: Visual Studio-style indent
  • Next by thread: Re: crashes after changing signatures of virtual functions / virtual inherited classes
  • Index(es):
    • Date
    • Thread