Hi, can this be used to store structs of variable size?
I attempted to use a struct with the following members:
struct MyStruct{
String str;
int n;
bool boolean;
int anotherInt;
String anotherStr;
};
I was able to enqueue, then dequeue it, and the values were loaded correctly, however it instantly gave me an heap poisoning error:
CORRUPT HEAP: Bad head at 0x3ffb99a8. Expected 0xabba1234 got 0x3ffb8014
assert failed: multi_heap_free multi_heap_poisoning.c:259 (head != NULL)
I've started to use char[] instead of String, and a fixed size queue, and it worked without errors, I assume the problem is with String allocating memory dynamically?
Hi, can this be used to store structs of variable size?
I attempted to use a struct with the following members:
I was able to enqueue, then dequeue it, and the values were loaded correctly, however it instantly gave me an heap poisoning error: CORRUPT HEAP: Bad head at 0x3ffb99a8. Expected 0xabba1234 got 0x3ffb8014 assert failed: multi_heap_free multi_heap_poisoning.c:259 (head != NULL)
Am I doing anything wrong on the implementation?