On Wed, 15 Nov 2006, Joao Morais wrote:
> > Hello, > > I have a TPersistent decendant class that causes the following compiling > error: > > "Only class which are compiled in $M+ mode can be published" > > This is the inheritance: > > TPersistent (Classes unit) > +-TPressStreamable (PressClasses unit) > +-TPressSubject (PressSubject unit) > +-TPressObject (PressSubject unit) > > Am I missing something? Probably you have a published member in your class which is not a descendent of TPersistent. Only TPersistent descendents can be published members of a class (which in itself must be a TPersistent descendent). So, if TPressObject has a published property Property MyProp : TMyPropClass Read... then TMyPropClass must also descend from TPersistent. Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal