On 8/21/06, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
> TTestObject.Create won't ever be called (only TBaseTestObject.Create
> will be, but if I use TClass instead of TBaseTestClass, it also won't
> be). It also makes no difference if I use TPersistent as base or
> simply TObject. But the DoSomething call works nevertheless,
> therefore it seems, that the VMT (and other stuff) is initialized
> correctly, but my own constructor won't ever be called.

Make 'Create' virtual.

Mattias

Oops!  Didn't see this was already answered...


Regards,
 - Graeme -

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to