MQeFieldsFree

Description
Deallocates an MQeFields object and recovers its resources.

Syntax
#include <hmq.h>
MQEVOID MQeFieldsFree( MQEHSESS hSess, 
								MQEHFIELDS hFlds, 
            				MQEINT32 * pCompCode, 
								MQEINT32 * pReason)

Parameters

MQEHSESS hSess - input
The session handle, returned by MQeInitialize.

MQEHFIELDS hFlds - input
The handle to an MQeFields object.

MQEINT32 * pCompCode - output
MQECC_OK, MQECC_WARNING or MQECC_ERROR.

MQEINT32 * pReason - output
If the returned *pCompCode equals MQECC_ERROR, *pReason may have any of the following values:

MQE_EXCEPT_INVALID_HANDLE

Return Value

MQEVOID

Example
#include <hmq.h>
static MQECHAR const * FieldsType = "com.ibm.mqe.MQeFields";
MQEHSESS  hSess;
MQEINT32  compcode;
MQEINT32  reason;
MQEHFIELDS hFlds;
 
hSess = MQeInitialize("MyAppsName", &compcode, &reason);
hFlds = MQeFieldsAlloc( hSess, FieldsType, &compcode, &reason);
MQeFieldsFree( hSess, hFlds, &compcode, &reason);

See Also
MQeFieldsAlloc


© IBM Corporation 2002. All Rights Reserved