> No, there are no mutual references.

Yes, I see that now.

> -The timeoutList refers to the timeoutObject
> -The timeoutObject refers to the scriptInstance
> -The scriptInstance refers to the miaw

Not quite. The timeoutList no longer refers to the timeout because that's
what the forget() command does - removes it from the timeoutList.

However, you are right that it isn't mutual references that are causing the
problem. I was imagining that somehow the scriptInstance was maintaining a
reference to the timeoutObject via the local parameter. I see from your
other post that this is not the case. I apologise for my confusing this. And
congratulations/kudos for getting to the root of it. Nasty little gotcha,
that one.

> >on exitFrame me, aTimer
> >    aTimer.forget()
> >    aTimer = VOID  -- or 0
> >    pWindow.forget()
> >end
>
> I guess that this is a typo? aTimer is a local variable, that will be
> cleared when the handler goes out of scope, clearing it shouldn't
> accomplish anything, and it doesn't help in my test.
> Did you mean: aTimer.target = VOID?

No, it wasn't a typo. Just my sloppy approach to getting it to work for me
;)

> I can indeed verify that there is a problem with my code, but it's
> not for the reasons you think.
> I stipulate this point, because I want to stress that my code wasn't
> flawed by design, sloppy or the result of malpractice.

Whoa there. I wasn't suggesting anything of the sort. It is nothing short of
your usual elegance - to which I'm sure more than just I aspire.

Again, thanks for taking the time to figure this one out. Is that a wrap?

-Sean.


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to