catch problems

From: Gerald Klix <gklix_at_fred.hassler.net>
Date: Tue, 22 Oct 1996 17:24:37 +0200

Albert L. Ting wrote:
>
> 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.

Sorry, no ideas, but some questions:
How can I find in catch clause which error occured.
It think, STk needs a real exception system.

Gerald
Received on Tue Oct 22 1996 - 17:22:16 CEST

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