WebSphere MQ Everyplace memory functions

WebSphere MQ Everyplace provides the following functions for memory management:

These functions use the same memory management routines that are used within the WebSphere MQ Everyplace codebase. These are available for use by application programs. An application can generally use its own choice of memory management. However, some API calls, for example mqeAdministrator_QueueManager_inquire, need to return blocks of memory containing information. In this case, the memory must be freed using the mqeMemory_free function.

An additional advantage of using the mqeMemory functions is that their use gets traced along with mqe processing. However, never mix the memory allocation calls. For example, do not free memory allocation with mqeMemory_allocate with the C runtime free() call, as the application can become unstable.



© IBM Corporation 2002. All Rights Reserved