Posted: Wed Feb 07, 2007 1:21 am Post subject: Question of Memory Management in a C Plugin Node
Newbie
Joined: 20 Sep 2006 Posts: 4
I've coded a user-defined node in C that uses the API calls to create an output message and propagate it to an output terminal.
After propagation, the function cniDeleteMessage() is called to delete the output message.
How much of the output message does this actually destroy? For example, I have allocated memory during the creation of the message (using the CciString() utility function provided in the sample code) to hold the names of the elements I have added to the message, the values of the elements and the name of the elements' namespace. Do I need explicitly to free that memory or does cniDeleteMessage() do that for me?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum