-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnote.to.self.txt
33 lines (27 loc) · 1.08 KB
/
note.to.self.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
**********************
Hex_String Library
**********************
Note to self # 1: (26/02/13)
when using USE_POINTER_LIST, the address of __heap_start
is added to __freelist, showing then more memory than
there is
# by commenting the call to FreeByteArray() in ResizeByteArray()
this issue doesn't happen anymore; however more
memory is allocated during program execution. This
issue still occurs when the lines of code of
FreeByteArray() are copied to replace its call;
# when using debug to check which addresses were freed
in FreeByteArray(), the address of __heap_start
was NEVER displayed;
# to see where it first occurs, uncomment the lines where
(### note to self - 1 ###) are foun in the sketch
example, and add the following lines to
<Memory.h>::freeListSize()
Serial.print("+++++ ");
Serial.print((int)current, HEX);
Serial.print(" .. ");
Serial.println((int)current->sz);
SOLVED - 04/03/13
apparently memory is first allocated in the heap start,
so __heap_start should appear in the __freelist after
freeing the respective allocated memory.