error writing to a newly created path

  • Thread starter Thread starter Eddie Suey
  • Start date Start date
E

Eddie Suey

I'm creating a directory and a file in the directory. When I try to write
to the file I get the following error:
"Can not access the file ... because it is being used by another process".

The directory and file are created just fine - in fact, I can restart the
program and since the path has already been created, I can write to the file
with no problem. I only get the error when I have to first create the path
and then I try to write to the file.
Any help is appreciated!
 
Post some code please. Its possible that the method you used to create the
file hasn't released its lock.
 
Hi Eddie,

How do you create the path

Please a piece of code first, now you can get a million answers and a thread
from a mile here and one of them can maybe right.

Cor
 
* "Eddie Suey said:
I'm creating a directory and a file in the directory. When I try to write
to the file I get the following error:
"Can not access the file ... because it is being used by another process".

The directory and file are created just fine - in fact, I can restart the
program and since the path has already been created, I can write to the file
with no problem. I only get the error when I have to first create the path
and then I try to write to the file.

Post the code you use to create the file.
 
Hi Eddie,

Just in case you didn't get the message, lol, post some code.

Regards,
Fergus
 
Hi Herfried,

3:49 Robin "Post some code please"
3:53 Cor "Please a piece of code"
8:10 HK "Post some code"
8:51 FC "Post some code"

Regards,
Fergus
 
Hi Herfried,

I think to overcome that Eddie thinks he has 4 answers and now he has only
to read 3 times the same.
Why do you reply this to me?!

Robin and I had send this message already at almost exactly the same time
16:49 and 16:53

Armin calls that "Echo of" Herfried

:-)) big smile

Cor
 
* "Fergus Cooney said:
3:49 Robin "Post some code please"
3:53 Cor "Please a piece of code"
8:10 HK "Post some code"
8:51 FC "Post some code"

Mhm... My newsreader doesn't show the complete thread...
 
Fergus,
Next time maybe
3:49 BSI Robin "Post some code please"
3:53 BSI Cor "Please a piece of code"
8:10 BSI HK "Post some code"
8:51 BSI FC "Post some code"
(I now see that I do it to always wrong by writing GMT because of our
European summertimes)

For Herfried and me it is one Hour later.
:-)
Cor
 
* "Cor said:
Next time maybe
(I now see that I do it to always wrong by writing GMT because of our
European summertimes)

For Herfried and me it is one Hour later.

I didn't know that we live in the same timezone...

;-)
 
* "Fergus Cooney said:
Come back to OE.??

In my newsreader I have to specify how many messages I want to read. If
there are a lot of messages and I type, for example, 400, I won't see
all messages.
 
Hi Herfried,

Ah. And you download message bodies as well as headers, I believe.

Regards,
Fergus
 
Back
Top