Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.014 Beiträge
 
#1

Be careful changing the DataContext of a TRemotable

  Alt 11. Nov 2020, 05:10
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...
  Mit Zitat antworten Zitat