Problem with starpack

Problem with starpack

Post by junk » Mon, 18 Oct 2004 01:48:24


Hi,

I've just started using Starpacks under Windows, which seem to work fine,
except I am getting an error message on exit:

Fatal Error in Wish:

called Tcl_Close on channel with refCount > 0

Looking at the past mailings on this list, i could find no solution,
yet several people have reported similar error messages.

Does anyone know offhand what causes this problem.
Any easy fixes?

Mick O'Donnell
 
 
 

Problem with starpack

Post by Arjen Mark » Tue, 19 Oct 2004 15:33:14


Could you post a (small) script that exhibits the problem?
Your question does not contain enough information for anyone
to reproduce it (I have never seen though I often use starpacks
on Windows).

Regards,

Arjen

 
 
 

Problem with starpack

Post by junk » Fri, 22 Oct 2004 00:54:48


As is often the case, in trying to reduce the problem to
a small size, I solved it (I was hesitant to try this as the
original example consisted of 12000+ lines of code).

Seems that the message:

called Tcl_Close on channel with refCount > 0

..is generated if you call "exit" from a starpack
with an io stream still open. It took me a while to
find the stream I wasn't closing. Problem solved.

PS is there an easy way to get Tcl/Tk to
tell me what streams are open at a given
point of time?

PPS calling "destroy ." rather than exit gives
a clean exit even if streams are still open.

Mick O'Donnell
wagsoft.com
 
 
 

Problem with starpack

Post by Donal K. F » Fri, 22 Oct 2004 17:52:26


Try [file channels] though this might be more problematic if you have
multiple interpreters in use.

Donal.