Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2006-01-12
23:19 • Closed ticket [1366227fff]: sharing violation in NativeStat (tclWinFile.c) p... artifact: d1a385ae1a user: vincentdarley
19:42 • Ticket [1366227fff]: 4 changes artifact: 918fab776d user: traum
2005-11-25
11:35 • New ticket [1366227fff]. artifact: 88e540d3b3 user: traum

sharing violation in NativeStat (tclWinFile.c)

Closed / Fixed1366227fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-11-25 11:35:53
I got "permission denied" error while starting multiple
tcl-Progs at the same time. Mostly files like
tclIndex etc. 

The problem came from calling createFile in NativeStat
with ShareMode == 0, which locks the file for a very
short time. After changing this to ShareMode =
FILE_SHARE_READ | FILE_SHARE_WRITE all problems disapear.
traumplain2006-01-12 19:42:23
Logged In: YES 
user_id=770325

Here is an example to reproduce the problem

contents of test.tcl:

while {1} {
   file stat test.tcl info
}


Now startting multiple times
  "tclsh test.tcl"
leads to "permission denied"
vincentdarleyplain2006-01-12 23:19:36
Logged In: YES 
user_id=32170

Thanks, fixed in cvs.
Log in (anonymous is fine) to add a comment.