Ah, so it is. Thanks Robert.
And ziggy, using pointers, therefore, is not the proper way to store a set of objects since it does not increase the reference count. Right?
I am trying to figure out the "correct" way to store a list of object references (in a 2 dimensional array). The TList doesn't serve my needs as well as I would like. And I cannot create an array of variables of type 'T'. So, this is what I have come up with now. Any thoughts?
This seems to work OK in my tests. Does anyone see any problem with this approach. Does anyone see a more "correct" approach?
Thanks for any/everyone's help.
And ziggy, using pointers, therefore, is not the proper way to store a set of objects since it does not increase the reference count. Right?
I am trying to figure out the "correct" way to store a list of object references (in a 2 dimensional array). The TList doesn't serve my needs as well as I would like. And I cannot create an array of variables of type 'T'. So, this is what I have come up with now. Any thoughts?
For y = 1 To down For x = 1 To across tempTile = TTile.Create(0, 0, width, height) ' Add reference to tileArray. tileArray[x-1,y-1] = tempTile Next Next
This seems to work OK in my tests. Does anyone see any problem with this approach. Does anyone see a more "correct" approach?
Thanks for any/everyone's help.