| Gabriel Maldonado wrote:
>
> Dustin Barlow wrote:
>
> > I have had a couple of other users email me about having problems
> > with CSound creating READ-ONLY files. I have the latest versions
> > of CSound and mine seem to be writing the correct file attributes
>
> If Csound is compiled with MSVC, maybe the read-only error is a bug of
> the compiler. In my version of Csound I had inserted a patch which looks
> at the just written file and removes the attribute if it is read-only.
No, I had this (really minor) problem with the DOS version a year ago,
I think John didn't use MSVC then?
Checking, I find it has disappeared from the DOS version (3.473),
but it's indeed there in Winsound (3.476):
When running the second time to the same output file, Csound dies with
a message like
sfinit: cannot open E:\Csound\Winsound\test.wav
I suppose it's a slightly more annoying problem with Winsound than
for the DOS version, since under Dos it's natural to run from a batch
file,
and then it's trivial to insert a line like
if exist %SFDIR%\test.wav ATTRIB %SFDIR%\test.wav -r
after the Csound command line.
Gabriel, perhaps you should mail the patch to John (as if he won't
find it in, er, under 30 secs? (any takers?)...)
HTH,
re |