Quote Originally Posted by wila View Post
Hi Albin,

The OemToUtf8Buffer function allocates memory on the heap.
With free you release memory on the heap.

For DF20, you're not allocating memory on the heap, instead it is in a local variable which you are taking the address from.
So it is on the stack.
You can't release memory on the stack with the free command.
You don't have to, the runtime takes care of that.

Hope this helps,
It does, Thanks Wil!