Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Be careful changing the DataContext of a TRemotable (https://www.delphipraxis.net/206024-careful-changing-datacontext-tremotable.html)

DP News-Robot 11. Nov 2020 05:10

Be careful changing the DataContext of a TRemotable
 
Still not sure why the RTL code is like this: procedure TRemotable.SetDataContext(Value: TDataContext); begin if (RemotableDataContext <> nil) and (RemotableDataContext = Self.DataContext) then begin TDataContext(RemotableDataContext).RemoveObjectToD estroy(Self); end; FDataContext := Value; end; It means that if you ever have to change the DataContext property from the default global RemotableDataContext, it will be removed, but not added to […]

Weiterlesen...


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:01 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz