On 10/08/16 15:05, Marco van de Voort wrote:
The way how Tony passes owner is wrong and that messes up reference counting.If in the test he would do TMyclass.Create(Tsomeclass.create); it probably would be ok.
But in my test, the code reads: Intf := TMyClass.Create(TDelegateClass.Create); So, why didn't this work? _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal