[fpc-devel] FreeNotification and opRemove

Hans-Peter Diettrich DrDiettrich1 at aol.com
Fri Mar 9 11:28:44 CET 2012


Martin schrieb:

> When C2 gets the opREmove, it must mot just remove it's own entry, but 
> also remove the entry C1 has

The meaning of opRemove is unclear. IMO it doesn't make sense in the 
example code, because the owner of a component can change many times, 
without meaning that the component is being destroyed. In such a 
scenario the receiver can not know whether (when) the notification 
should be removed, the notification itself is quite useless.

>>>>   Owner.RemoveComponent(C1); // C2 Gets on opRemove

DoDi




More information about the fpc-devel mailing list