释放消息内存资源。
void PalmLsnFree( struct a_palm_msg * const msg )
msg 要释放的 a_palm_msg 实例。
以下示例显示了用于分配消息结构、处理消息以及使用 PalmLsnFree 释放资源的部分列表:
a_palm_msg * ulMsg; ... // Allocate the message structure ulMsg = PalmLsnAllocate(); ... // Fill the message fields ret = PalmLsnDupMessage(ulMsg, msgBody); ... // Process the message ret = PalmLsnProcess(ulMsg, configDb, NULL, handled); ... // Free the message PalmLsnFree(ulMsg); |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |