Your example seemed to work here.

Is the class you're having trouble with also in a package you're using
(which also needs to be rebuilt with $M+)?

Cheers,

Carl Reynolds                      Ph: +64-9-4154790
CJN Technologies Ltd.             Fax: +64-9-4154791
[EMAIL PROTECTED]                DDI: +64-9-4154795
PO Box 302-278, North Harbour, Auckland, New Zealand
12 Piermark Drive, North Harbour Estate, Auckland, NZ
Visit our website at http://www.cjntech.co.nz/

> -----Original Message-----
> From: Myles Penlington [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, September 14, 1999 11:30 AM
> To:   Multiple recipients of list delphi
> Subject:      RE: [DUG]:  Who knows the magic word?
> 
> I had noticed something like that, so may be that will help. 
> But there is something more - it does not like my class definition -
> if I
> put an empty class as the parent (with $M+) and then descend from that
> all
> works okay. 
> So something is funny ..
> 
> > -----Original Message-----
> > From:       Max Nilson [SMTP:[EMAIL PROTECTED]]
> > Sent:       Tuesday, September 14, 1999 10:58 AM
> > To: Multiple recipients of list delphi
> > Subject:    RE: [DUG]:  Who knows the magic word?
> > 
> > Myles Penlington asked us:
> > 
> > > I am trying to create a class derived from TObject in the {$M+}
> > > (RTTI turned on).
> > 
> > > But it does not work? - ClassInfo Fails
> > > But if I create a class that has the same signature as TPersistent
> > 
> > I have created a class hierarchy based on TInterfacedObject with the
> RTTI
> > turned on. All working perfectly, but during the process I found
> that
> > there is a catch to the process creating $M+ enabled classes. That
> is that
> > the compiler doesn't notice the $M+ directive being added and flag
> the
> > unit interface as changed. So any dependant units don't get compiled
> and
> > the RTTI information expected in them is extremely messed up.
> > 
> > The best thing I found was to do a complete project build after
> fiddling
> > with the RTTI generation and than everything would work cleanly
> after
> > that.
> > 
> > Cheers, Max.
> > 
> > 
> >
> ----------------------------------------------------------------------
> ----
> > -
> >     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> ----------------------------------------------------------------------
> -----
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz

application/ms-tnef

Reply via email to