Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Lists [Table of Contents] Multi-Threaded Applications

Sybase dbQueue Reference Guide

[-] Chapter 1: Using the dbQueue Objects Library
[-] Memory Management

Memory Management

The dbQueue objects library uses a "factory approach" to allocate and free memory:

The following sections summarize special memory management issues in the dbQueue objects library.

DbqEnv

DbqEnv is created by the static method DbqEnv::NewEnv(). All other classes are allocated by instance methods.

DbqEnv instances are deallocated using the Delete() method.

Lists

List methods always allocate a new DbqEnumerator instance. Client applications should call Delete() to eliminate the instance.

DbqEnumerator handles memory management for all instances it contains. Client applications should never deallocate instances in a DbqEnumerator list. Instead they must call Delete() only on the DbqEnumerator instance.

DbqErr

DbqErr instances are returned by FetchError(). Client applications must call Delete() to deallocate them.


Lists [Table of Contents] Multi-Threaded Applications