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

Home » Public Forums » archive » Re: Fragile IDL 8 Object Programs
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
Re: Fragile IDL 8 Object Programs [message #73010] Mon, 25 October 2010 09:01 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> It is possible there are left-over graphical widgets on
> the display when I re-compile. Most of the time I am not
> aware of this because I can't get the darn things to pop forward
> on my display, and I usually have multiple applications
> open on both monitors, so my graphics windows are almost
> always hidden. I spend about half the day trying to find
> the damn things!

I really should try to find another way of working, I
suppose. I've grown too comfortable with the clutter. :-)

Cheers,

David

P.S. Let's just say a mindfulness approach of working on
one thing at a time might be the perfect solution to
ALL my problems! :-)


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Fragile IDL 8 Object Programs [message #73012 is a reply to message #73010] Mon, 25 October 2010 08:53 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paulo Penteado writes:

> Fragile in what sense? Besides the on_error issue, which is not
> specific to objects, I have not noticed any such difference when
> debugging, either with object or non-object programs, preexisting or
> new, using Catalyst or not.

Fragile in the sense that when one of my object programs
crashes (there are usually widgets involved), and I fix
the problem and re-compile and re-run, quite often, but not
always, IDL simply freezes and refuses to do anything at all.
I need to kill it, which takes on the order of a minute
or two, and re-start it in order to proceed.

It is possible there are left-over graphical widgets on
the display when I re-compile. Most of the time I am not
aware of this because I can't get the darn things to pop forward
on my display, and I usually have multiple applications
open on both monitors, so my graphics windows are almost
always hidden. I spend about half the day trying to find
the damn things!

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Fragile IDL 8 Object Programs [message #73013 is a reply to message #73012] Mon, 25 October 2010 08:45 Go to previous messageGo to next message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Oct 25, 1:06 pm, David Fanning <n...@dfanning.com> wrote:
> Folks,
>
> Is anyone else having this problem? I write a LOT of
> IDL object programs. But I pretty much have to work
> in IDL 7 to debug them. IDL 8 is so incredibly fragile
> when an object crashes. I don't know if this is because
> of the new memory management of objects or what. But
> it's just really hard to work this way. Is it because
> my widgets are objects and there is some bad interaction
> between these two systems? Is it because I recompile after
> an object has crashed and I fix the problem, so the cleanup
> is confused? I don't know. Still looking for patterns and
> solutions. :-(

Fragile in what sense? Besides the on_error issue, which is not
specific to objects, I have not noticed any such difference when
debugging, either with object or non-object programs, preexisting or
new, using Catalyst or not.
Re: Fragile IDL 8 Object Programs [message #73015 is a reply to message #73013] Mon, 25 October 2010 08:38 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul van Delst writes:

> A majority of my new IDL code is object oriented. When I'm testing and things go pear shaped, I use the traceback to fix
> the problem(s) and then type
> IDL> .reset_session
> and run my test code again. Do you reset?

I don't really reset, no. I've never had to. And I don't
want to.

I'm multi-tasking, usually, and I have variables, etc.
set up for my book. I suppose I could come up with a
better plan for restoring those variables, but this
all seems like a LOT of work to me!

I think this is exactly what I had in mind when
I just wrote about "changing the way you work". :-(

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Fragile IDL 8 Object Programs [message #73017 is a reply to message #73015] Mon, 25 October 2010 08:31 Go to previous messageGo to next message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Hello,

A majority of my new IDL code is object oriented. When I'm testing and things go pear shaped, I use the traceback to fix
the problem(s) and then type
IDL> .reset_session
and run my test code again. Do you reset?

This used to be a pita to do because you had to re-setup everything for the tests (read files, set values, etc) but
since I've started using Mike Galloy's mgunit, the setup method takes care of that every time I run the test already.

I've never experienced any particular fragility with objects in IDL 8 vs IDL 7.x on my linux box. But, I've only been
IDL8-ing for about a month or so. And, so far, all my widgets are the regular, non-Catalyst kind.

cheers,

paulv


David Fanning wrote:
> Folks,
>
> Is anyone else having this problem? I write a LOT of
> IDL object programs. But I pretty much have to work
> in IDL 7 to debug them. IDL 8 is so incredibly fragile
> when an object crashes. I don't know if this is because
> of the new memory management of objects or what. But
> it's just really hard to work this way. Is it because
> my widgets are objects and there is some bad interaction
> between these two systems? Is it because I recompile after
> an object has crashed and I fix the problem, so the cleanup
> is confused? I don't know. Still looking for patterns and
> solutions. :-(
>
> Cheers,
>
> David
>
>
Re: Fragile IDL 8 Object Programs [message #73155 is a reply to message #73012] Mon, 25 October 2010 10:13 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Does this only happen when you use the idlde? Or also in command line usage?

cheers,

paulv

p.s. Full disclosure: I have *never* used the idlde. I just started it up for the very first time and my simple hello
world program produced several pages of errors. Goodness.



David Fanning wrote:
> Paulo Penteado writes:
>
>> Fragile in what sense? Besides the on_error issue, which is not
>> specific to objects, I have not noticed any such difference when
>> debugging, either with object or non-object programs, preexisting or
>> new, using Catalyst or not.
>
> Fragile in the sense that when one of my object programs
> crashes (there are usually widgets involved), and I fix
> the problem and re-compile and re-run, quite often, but not
> always, IDL simply freezes and refuses to do anything at all.
> I need to kill it, which takes on the order of a minute
> or two, and re-start it in order to proceed.
>
> It is possible there are left-over graphical widgets on
> the display when I re-compile. Most of the time I am not
> aware of this because I can't get the darn things to pop forward
> on my display, and I usually have multiple applications
> open on both monitors, so my graphics windows are almost
> always hidden. I spend about half the day trying to find
> the damn things!
>
> Cheers,
>
> David
>
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: the "real" screen size
Next Topic: Re: problem with TRIANGULATION option in CONTOUR

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

Current Time: Wed Oct 08 15:22:21 PDT 2025

Total time taken to generate the page: 0.00555 seconds