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

TOPIC: Binary String tciEncode(Value)

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

  • Rahul
  • Rahul's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 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
The administrator has disabled public write access.

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

  • Rennoch Axel
  • Rennoch Axel's Avatar
  • OFFLINE
  • Moderator
  • Posts: 17
  • Thank you received: 1
  • Karma: 0
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
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin