comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » dereferencing a pointer to an object array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
dereferencing a pointer to an object array [message #32805] Thu, 07 November 2002 15:58
Brent_griffith is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: chinese char in the menu bar
Next Topic: Fit a circle ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 16:14:21 PDT 2025

Total time taken to generate the page: 0.73343 seconds