This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Memory_alloc

I use following the method of buf2 = Memory_alloc(otherHeap, 128, 0, eb);the allocation of space assignment For (i=0; i<10; i++) {* (buf2+i)=i;} But the following error: #906 expression must be a pointer to a complete object type Ask: how to allocate space for assignment, thank you. If you know the memory space alignment, please give some space alignment problem: Ptr HeapBuf_alloc (HeapBuf_Handle handle, SizeT size, SizeT align, Error_Block *eb); ARGUMENTS Handle handle of a previously-created HeapBuf instance object Size - size (in MADUs) of the block Align - alignment (in MADUs) of the block EB pointer to error block How can I set align - alignment (in MADUs) of the block this parameter, thank you