Overview
| Artifact ID: | 5fc8e52fd19ea3c0fbc698f3eb82f7067ad5a461 |
|---|---|
| Ticket: | 636161ffffffffffffffffffffffffffffffffff
Tcl_FS* problems on windows&threads |
| User & Date: | zoro2 on 2002-11-10 18:39:05 |
Changes
- icomment:
Logged In: YES user_id=191529 Here's a quick fix which seems to work fine for loading Itcl on windows. It is ugly and the problem does return in other places as well :-(. I'll try and find the source of the problem. --- tclO/generic/tclIOUtil.c 2002-08-16 16:37:50.000000000 +0200 +++ tcl/generic/tclIOUtil.c 2002-11-10 12:35:12.000000000 +0100 @@ -29,6 +29,7 @@ /* for tclWinProcs->useWide */ #include "tclWinInt.h" #endif +#include "tclIO.h" /* * Prototypes for procedures defined later in this file. @@ -1339,6 +1340,7 @@ goto end; } chan = Tcl_FSOpenFileChannel(interp, pathPtr, "r", 0644); + ((Channel *) chan)->state->refCount=0; if (chan == (Tcl_Channel) NULL) { Tcl_ResetResult(interp); Tcl_AppendResult(interp, "couldn't read file \"", - login: "zoro2"
- mimetype: "text/plain"
- username: "zoro2"