catch problems

From: Albert L. Ting <alt_at_vlibs.com>
Date: Mon, 21 Oct 1996 13:41:04 -0700 (PDT)

I've been trying to create a simple balloon help mechanism where by if the
mouse enters and stays in a region, a toplevel window pops up with some
help text. For the most part, it works. However, there's some 'race'
condition such that a "(catch (destroy toplevel-ballon-widget))" will still
cause a "bad pathname" error. The stack looks like....

        (winfo (quote children) obj)
        (for-each destroy (winfo (quote children) obj))
        (destroy balloon)
        (catch (destroy balloon))

I even tried nesting the "catch" calls in the destroy methods. Any ideas
what I may be doing wrong? I'm using version 3.1.1.

I should also mention that I've seen this happen once with a pop-up menu,
but I have not been able to repeat it.

Thanks,
Albert

-- 
Albert L. M. Ting * mail:alt_at_vlibs.com * phone:408-487-5327 * fax:408-453-3500
VLSI Libraries Incorporated, 2077 Gateway Place, Suite 300, San Jose, CA 95110
Received on Mon Oct 21 1996 - 23:39:31 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST