Paul Arnett wrote:
>
> Every time I run a TCL script, another instance of wish starts, but
> when I close the TCL Window, the instance of wish remains. This would
> be bearable if it used only a little memory, but it uses 3-5 meg!
> This adds up, believe me. At one time, I had eight instances of wish
> going, and when I tried to do anything, I'd get an "out of memory"
> error. Apparently, I had only 3 meg of memory left. The safest cure
> is to re-logon to NT and restart the processes, but this is
> cumbersome.
>
> Is there any way I can have the script call the 'exit' command when I
> close the window?
>
Try to bind the command exit to the <Destroy> - event of the toplevel
widget of that window.
Bernd
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).