DisposeStr¶
Dispose an ansistring from the heap.
Declaration¶
Source position: sysstrh.inc line 69
procedure DisposeStr(S: PString); overload; overload;
procedure DisposeStr(S: PShortString); overload; overload;
Description¶
DisposeStr removes the dynamically allocated string S from the heap, and releases the occupied memory.
This function is provided for Delphi compatibility only. AnsiStrings are managed on the heap and should be preferred to the mechanism of dynamically allocated strings.
For an example, see DisposeStr.
Errors¶
None.