Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Thread question

0 views
Skip to first unread message

Hermann Boeken

unread,
Jun 10, 2005, 8:07:36 AM6/10/05
to
In the threads of my threaded application I open files for reading and
writing.
Are the file handles closed implicitely when the thread is terminated or
to they exist as orphanes somewhere (file channels command in main
thread does not show anything left).

I use Thread 2.5.2 with Tcl 8.4.9 and latterly started running in the
Solaris 'too many open files' error.

Hermann

Jeff Hobbs

unread,
Jul 3, 2005, 1:25:04 PM7/3/05
to Hermann Boeken

'file channels' only returns channels registered in the current
interp(/thread). Are you sure that the other threads are
exiting cleanly? It would seem not, as you do seem to be
hitting a simple case of too many unclosed files.

--
Jeff Hobbs, The Tcl Guy
http://www.ActiveState.com/, a division of Sophos

0 new messages