View Single Post
Old 12-25-2011, 02:20 AM   #19
Erriez
Human being with feelings
 
Join Date: Jun 2010
Location: The Netherlands
Posts: 177
Default

Hello Zoab,

I understand your confusion, because the debugger (your screenshot) does not display the contents of the memory (array). Your code is correct to define arrays:

Code:
memtest1 = 0; // Any
memtest2 = memtest1 + 3; // memtest1 size = 3
memtest3 = memtest2 + 6; // memtest2 size = 2
// memtest3 size = (undefined?)

// Memtest1 size is 3:
memtest1[0] = 7; // First
...
memtest1[2] = 8; // Last

// Memtest2 size is 6:
memtest2[0] = 9; // First
...
memtest2[5] = 10; // Last

memtest3[0] = 11; // First
...
See also IXix post which contains a nice memory debugger:
Quote:
Also, you might be interested in something which I posted to the useful snippets thread a long time ago. Very handy for working with memory blocks .
Erriez is offline   Reply With Quote