Not quite sure if this is the right forum or such and it is kind of more of general c++ question, but here it goes.
I was trying to find some issues I have in my synth so I made some checks on some pointer values.
textImage = new Image(Image::ARGB, getWidth(), getHeight(), true);
void* p = malloc(1024*1024);
char* c = new char[1024*1024];
printf("%p %p %p\n", textImage, p, c);
printf("%i, %i", getWidth(), getHeight());
printf gives the following
0x618001410450 0x12c163000 0x12d0f7000
As you can see, new "new Image" gives a pointer value waaaay higher than "malloc" and "new char".
The code works as expected though but it got me curious.
>>> x = 0x618001410450
What fundemental thing am I missing if I interpret that as a pointer 99840 gigabytes in to the ram!? :)
Please be kind ;)