Quote:
This one works for me. Tested with the array defined as
var* array = (var*)malloc((int)sizeof(var)*50);
memset(array[25], 0, 24 * 4);

I have tested this before with an int array. But for some reason it does not work with int arrays ("crash in main", although i am pretty sure it did not crash in the first place, but resulted in an uninitialized array).
However, with var (and other data types such as float and short) there aren't any problems indeed.
Well, I don't really know why. : )

Thank you for pointing this out.