Peter N Lewis wrote:
Who calls InvalidObjectError and why (other than the obvious!).
I searched the code but couldn't find any enlightening references as to who actually detects an invalid object and calls this...?
AFAIK InvalidObjectError is only called when you give `-fobject-checking' option. In this case the compiler emits inline code to check that virtual method table looks sane (exists and does not correspond to an abstract object).