MQe memory functions

MQe provides the following functions for memory management:
  • mqeMemory_allocate
  • mqeMemory_free
  • mqeMemory_reallocate
These functions use the same memory management routines that are used within the MQe code base. 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.


Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.