Welcome, Guest
Username: Password:
  • Page:
  • 1

TOPIC:

Binary String tciEncode(Value) 30 Jun 2017 07:42 #7878

  • Rahul
  • Rahul's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
Hi I am new to TTCN3 learning TTCN3 for Iot .

Need help,

After doing codec Encoder for received message returning encoded Byte string back to TTCN3

BinaryString tciEncode(Value)
{
BinaryString return_b_string;
// memory allocation for data
return_b_string.data = NbMalloc (size);
**
**
**
return ( return_b_string);
}
wanted to know I have allocated memory for encoding and returned this information to TTCN3, how to free this memory because TTCN3 says whatever memory allocated by user they should free.

I am getting memory leak.

There is API i found triException we can use, don't know how to use this API

Please help me over this

Please Log in to join the conversation.

Binary String tciEncode(Value) 30 Jun 2017 09:17 #7879

Hi Rahul,

tciException is related to the procedure-based communication in TTCN-3 but not related to your programming issue.

Which tool are you using?

Ciao,
Axel

Please Log in to join the conversation.

  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin