Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » MobiLink - 服务器启动的同步 » 用于 Palm 设备的 MobiLink 监听器 C API

 

PalmLsnFree 方法

释放消息内存资源。

语法
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);