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

Home » Public Forums » archive » Re: Managing several object instances
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: Managing several object instances [message #81496 is a reply to message #81495] Mon, 17 September 2012 15:17 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Helder writes:

> However, I'm not coming around a problem. How can I efficiently keep track of the generated object instances. Suppose the user generates 5 line profiles, and destroys the third and then generates a new one and so on and so forth.
> What is the most efficient way of keeping track of the existing/running object instances so that I can efficiently pass around my token?
> That means that I need to be able to add and delete object instances in a record and at any time be able to know which ones are working and active...

Why would you want to keep track of them?

Just write a program that does what you want it to do
(resize, save, etc.) and send it forth from your other
program. When the user is finished with it, he or she
will kill it. What do you care?

Make sure you call the program with a Group_Leader, which
will be the top-level base of your GUI. Then, when your
GUI dies, all the programs that were spawned from it
(however many are still left!) will be destroyed, too.

Cheers,

David

P.S. You could use cgWindow to display your image profiles,
for example, then you already have all the resizing and saving
built right in. You really don't have anything at all to do,
except fill up the windows with the right commands.

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: evenly spaced vector
Next Topic: Basic cgMap and cgMapPlotS tutorial

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

Current Time: Tue Dec 02 09:00:54 PST 2025

Total time taken to generate the page: 2.48442 seconds