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

SQL Anywhere 11.0.1 (日本語) » Mobile Link - サーバ起動同期 » Palm デバイス用 Mobile Link Listener 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);