RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXSCustomDateTime.Destroy Destructor

Frees the memory associated with the TXSCustomDateTime object.

Pascal
destructor Destroy; override;
C++
virtual __fastcall ~TXSCustomDateTime();

Do not call Destroy to free a TXSCustomDateTime object. Instead, use the Free method, which checks that the TXSCustomDatetime reference is not nil before calling Destroy. 

On server applications, there is typically no need to explicitly free a TXSCustomDateTime instance (for example, one created as a return value or output parameter). By default, when a TXSCustomDateTime descendant is created in a method that was called remotely using an invokable interface, it is added to a data context (the value of the DataContext property). As long as the remotable object belongs to the data context, the data context handles freeing the object. Similarly, TCustomXSDateTime objects that are passed in as a parameter belong to the data context. 

On client applications, TXSCustomDateTime instances created and passed to an invokable interface or returned as a parameter or result of an invokable interface must be freed by the calling application. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!