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

Home » Public Forums » archive » Destroying objects
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: Destroying objects [message #38117 is a reply to message #38019] Tue, 17 February 2004 13:19 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
JD Smith writes:

> Interesting method. I would worry that putting an explicit CATCH in
> each method might bog things down, if your events typically make
> deeply nested excursions through dozens of routines (as mine often
> do).

I don't know about speed. Those errors seem to happen instantaneously
to me. :-(

Lord knows I'm not going through "dozens" of routines, typically.
I have enough trouble keeping everything in mind with relatively
flat object hierarchies. Six or eight levels deep is a fairly deep
traceback from most of the programs I write. But it takes next to
no time to go into a routine and back out of it again (which is what
happens, essentially, to a handled message), so I don't notice a
time penalty at all.

> Since I'm not planning to get rich off of it, I don't mind showing you
> my simple method for discriminating between command-line and GUI.

Interesting. My library is built for application building, which
pretty much means widgets from the get-go, so we just assume
a widget is around and pop-up dialogs on errors. If I had it
to do over, though, I might think about abstracting the
widget functionality (this is one thing the iTool library
does nicely, but at a huge cost in complexity) and separating
the object from the widget itself. Or, better yet, just have
RSI marry the widget and object functionality so we don't
have to do it. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
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
Read Message
Previous Topic: Destroying objects
Next Topic: Re: shading/outlining on surface plot

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

Current Time: Fri Oct 10 03:45:34 PDT 2025

Total time taken to generate the page: 0.40091 seconds