Sign in Join
FPDoc Onlineexperiment

FreeResource function

In unit System

Free a loaded resource.

Declaration

pascal
function FreeResource(ResData: TFPResourceHGLOBAL): LongBool

Description

FreeResource unloads the resource identified by ResData from memory. The resource must have been loaded by LoadResource. It returns True if the operation was successful, False otherwise.

Errors

On error, False is returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.