Re: Odd error when closing a window.



Bruce Hartweg wrote:
proc ::tools::twic {} {

But if I
1) Hit the 'dwonload' button then
2) Hit the cancel button,

I get this:

invalid command name ".twicWin.tf.txt"
invalid command name ".twicWin.tf.txt"

Any ideas?


yes, the download function is running along downloading something, (but isn't finished)
there is an update along the way (to provide GUI feedback of progress maybe?) adn you hit
(or have hit) the cancel button, so that event is triggered and deletes the entire window.
then processing is continuing in the download function and tries to work with stuff that
no longer exists - bam.


Thanks, that makes sense now. Yes, the cancel does not stop the download and since the download writes to a window (to provide some logging of what is happening, it will indeed continue to write to a non-existence window.


either remove the update, or diabled the cancel while download in
progress, or have the cancel button actually stop the downloading before destroying the window.

Bruce

The problem is the main reason for wanting to cancel is going to be that the download has hung for some reason - perhaps a networking issue. Anyway, it gives me something to think about.

--
Dave (from the UK)

Please note my email address changes periodically to avoid spam.
It is always of the form: month-year@xxxxxxxxxxxx
Hitting reply will work for a few months only - later set it manually.

http://chessdb.sourceforge.net/ - a Free open-source Chess Database
.