Home »
Public Forums »
archive »
dereferencing a pointer to an object array
dereferencing a pointer to an object array [message #32805] |
Thu, 07 November 2002 15:58 |
Brent_griffith
Messages: 5 Registered: October 2002
|
Junior Member |
|
|
greetings,
What is the trick to dereferencing a pointer to an Object array? I
want to keep track of an array of object references in another object.
I don't know how many until runtime so I use a pointer to the object
array and store that in the managing object. But when I go to access
the thing, by dereferencing the pointer, the object array has the
right size but all the objects are null.
here is how I create and store the object array
ZoneGroupObjs = objArr(self.numGroups)
For i = 0, self.numGroups-1 do begin
ZoneGroupObjs[i] = obj_new('ZoneGroup')
endfor
self.ZoneGroupObjs = ptr_new(ZoneGroupObjs)
Then to access the objarr inside another method..
theseGroupObjs=*self.ZoneGroupObjs
But it doesn't work! Why?
Thanks!
Brent
|
|
|
Current Time: Sat Oct 11 16:14:21 PDT 2025
Total time taken to generate the page: 0.73343 seconds