System.SysUtils.StrDispose

From RAD Studio API Documentation
Jump to: navigation, search

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