URL: http://www.firstbasesoftware.com/man/man3/freeglob.htm
Last modified: 12 September 1995
Copyright © by FirstBase Software.
[ Index of Contents] [ FirstBase RDBMS Overview]


NAME

free_globals - free globally allocated memory

SYNOPSIS

#include <firstbase/fb.h>

fb_free_globals()

DESCRIPTION

Fb_free_globals is the mechanism used to free and reset all global memory allocations and resources. Formally, the global cdb_afld and cdb_bfld variables are freed, and other global cumulators are reset to zero.

The fb_free_globals function should be used when an application loops over many iterations of opening/closing databases. The idea is to open all databases, do needed database work, close databases, and then call fb_free_globals. Without this mechanism, looping applications will continuously increase in size.

CLIENT/SERVER

The fb_free_globals routine will transparently call the fb_freeglobals_clnt mechanism when the global FirstBase variable cdb_use_rpc is set to one. See fb_clnt_create(3) for more details.

SEE ALSO

opendb(3), database(4).


URL: http://www.firstbasesoftware.com/man/man3/freeglob.htm
Last modified: 12 September 1995
Copyright © by FirstBase Software.
[ Index of Contents] [ FirstBase RDBMS Overview]