System.SysUtils.StrDispose
Delphi
procedure StrDispose(Str: PAnsiChar);
procedure StrDispose(Str: PWideChar);
C++
extern DELPHI_PACKAGE void __fastcall StrDispose _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (char * Str)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Warning: The ANSI version of StrDispose is deprecated. Please use the AnsiStrings unit.
Disposes of a string.
StrDispose is provided for backward compatibility. StrDispose disposes of a string on a heap that was previously allocated with StrAlloc or StrNew.
If Str is nil (Delphi) or NULL (C++), StrDispose does nothing.
See Also
Code Examples