I am trying to allocate a variable array, using the float_Array Object. The code I am using is simply to create an array pointer but then to use the Alloc function. However this gives me an expected NULL pointer error. How do I create a new float_array, do I have to create it as a child of the root object ? Code: float_Array *farr; farr.Alloc(10); // error occurs.