[Lazarus] Exception when I change betwen forms

Marc Weustink marc.weustink at cuperus.nl
Thu Oct 2 17:17:04 CEST 2008


Bart wrote:
> 
> 
> Should you free the form if you set Application as the owner? Will not 
> then Application try to free it again if the app closes, and throw an AV 
> at you?

No, when you free componentA which is owned by componentB, then 
componentA is removed from the childlist of componentB, avoiding a 
double free.

Marc




More information about the Lazarus mailing list