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

Home » Public Forums » archive » Re: Yet another object graphics question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Yet another object graphics question [message #42782 is a reply to message #42781] Thu, 24 February 2005 06:42 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Antonio Santiago writes:

> You can use an IDL_Container object to contains all helper object (like
> IDLgrFont).
> In my case, i store the reference in an IDL_Conteiner. At the moment of
> the destruction, one called to
> OBJ_DESTROY, container
> destroy all its associated object.
>
> In my particular case, I use IDL objects to work with Object Graphics
> and many times stores references to helper objects as class attributes.
> Perhaps it will be usefull for you.

Yes, good advice, especially the object part. I was just looking to
see how I did this, and it is always with objects.

But I was thinking that your main program could have a garbage
container, and that you could pass a reference to that to
your function, too. The function could put all the "helper"
objects into the container before it returned. That way you
have one container to destroy at the end and you get everything.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: OBJ_HASMETHOD
Next Topic: Re: Aaaahhhhaaayyyahhhh!

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

Current Time: Sun Oct 12 19:20:25 PDT 2025

Total time taken to generate the page: 1.51751 seconds