Forum Post: RE: Garbage collection - How Can I know the number of references to an object?

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
If you follow your approach, I would change a few things - especially the data type you store the object reference in. Do not use ToSTring() for this stuff, since you cannot know what value is returned. It might have a reference in it - per the default - but there are times when it won't. define variable myObject as INTEGER. Assign myObject = 1234. loop = Session:First-object. Do While valid-object(loop) : if INTEGER(loop) eq myObject) then Do: MESSAGE "Found!!!" VIEW-AS ALERT-BOX INFO BUTTONS OK. Leave. End. loop = loop:Next-sibling. End.

Continue reading...
 
Status
Not open for further replies.
Back
Top