On 27/06/2019 22:17, Ryan Joseph wrote:
> Why do I get a runtime error with this?

tt.pp(4,6) Warning: Virtual methods are used without a constructor in "TA"
tt.pp(14,6) Warning: Virtual methods are used without a constructor in "TB"

You have to add a constructor and call it, otherwise the object VMT does
not get initialised.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to