[fpc-devel] Problem with cascading Destructor in fpc 2.4

Luca Olivetti luca at ventoso.org
Sat Oct 30 21:43:35 CEST 2010


Al 30/10/10 17:54, En/na Martin Krüger ha escrit:

>
> So my question:
> Is it a bug or am i doing something i should not?
> The compiler gives me am note:
>
> test.pas(8,3) Note: Class should have one destructor only

If I remember correctly you should never call destroy directly, only 
free (which in turn will call your destructor).

Bye
-- 
Luca



More information about the fpc-devel mailing list