|
<< Click to Display Table of Contents >> Navigation: Telegram > 2022 > 12 > 21 > Telegram_2022-12-21T01 |
2022-12-21T01:30:53
fmain_DM := Tmain_DM.Create(Self);
don't use nil as the owner, unless you will destroy it explicitly later something I don't recommend, unless the datamodule has a shorter life compared to the UserSession
2022-12-21T01:31:34
Passing SELF as the owner of the datamodule means that the UserSession (which is itself a DataModule as well) owns the other DataModule and will be responsible for its destruction