FILEFLEX API REFERENCE



NAME
DBCloseSession -- Close down FileFlex

SYNTAX
DBCloseSession()

CATEGORY
Initialization Functions

DESCRIPTION
After you are done using FileFlex, you should clean up your environment by releasing memory used for buffers. To do this, put a DBCloseSession call into the handler called when exiting your movie or project. It may be placed elsewhere, but this is the most logical place for its use.

This will free all the data structures in use by the FileFlex engine. Failure to do this may cause all sorts of unpleasant problems.

FileFlex no longer requires DBOpenSession be called in most host environments (in particular Director). Instead, FileFlex checks automatically to see if gDBFileFlexCore has been initialized, and, if so, assumes FileFlex to have been initialized. Users will still need to execute a DBCloseSession, but repeated DBCloseSession calls will not crash the system. It should be noted that DBOpenSession will still remain part of the FF API because some host environments may not return an empty byte for unitialized globals.


EXAMPLE
put DBCloseSession() into dbResult

SEE ALSO
DBOpenSession

INTERNAL FUNCTION NUMBER
2


Copyright © 1992-1998 by David Gewirtz, under license to Component Enterprises, Inc.
Contact: info@component-net.com

Casa de Bender