[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Array Allocation
float_Array* farr = new float_Array;
then you can do stuff with it. Note that Alloc() is kind of an internal
fun for allocating memory for the list, but it doesn't actually put
items in the array. To do that, do EnforceSize(10).
Timothy Scully wrote:
>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.
>
>