Click here to Skip to main content
15,914,795 members
Home / Discussions / C#
   

C#

 
GeneralRe: Strange Problem at writing file Pin
Spacix One30-Aug-07 4:55
Spacix One30-Aug-07 4:55 
GeneralRe: Strange Problem at writing file Pin
error140830-Aug-07 5:05
error140830-Aug-07 5:05 
GeneralRe: Strange Problem at writing file Pin
J4amieC30-Aug-07 5:09
J4amieC30-Aug-07 5:09 
GeneralRe: Strange Problem at writing file Pin
error140830-Aug-07 5:12
error140830-Aug-07 5:12 
GeneralRe: Strange Problem at writing file Pin
Spacix One30-Aug-07 5:14
Spacix One30-Aug-07 5:14 
GeneralRe: Strange Problem at writing file Pin
error140830-Aug-07 5:18
error140830-Aug-07 5:18 
GeneralRe: Strange Problem at writing file Pin
Spacix One30-Aug-07 5:59
Spacix One30-Aug-07 5:59 
GeneralRe: Strange Problem at writing file Pin
Luc Pattyn30-Aug-07 6:42
sitebuilderLuc Pattyn30-Aug-07 6:42 
Hi,

if you want write or delete access (anything other than read access) to a file
that just got created (by yourself or someone else, does not matter),
chances are you will find the file is being accessed by some other process,
and your access is not granted.

Yhe other process very likely is some server code that is there to assist you
somehow. Candidates are:
- anti-virus software (Norton, McAfee, whatever)
- indexing software (Google Desktop, MS Office, whatever)
The common thing is these packages are looking all the time for new files, so
they can inspect them.

Microsoft is aware of the consequences; Windows Explorer will try rename and
delete attempts up to five times (with one second interval), and only reports
failure if the action continues to fail for that time.

The solution:
1. either use a different file name
2. or remove all background reader candidates (bad idea)
3. or implement the retry loop as Explorer has it (use a Windows.Forms.Timer
for this)

Smile | :)



Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: Strange Problem at writing file Pin
error140830-Aug-07 7:38
error140830-Aug-07 7:38 
Questionchatting between c# and asp.net Pin
_beginner_30-Aug-07 2:31
_beginner_30-Aug-07 2:31 
AnswerRe: chatting between c# and asp.net Pin
Colin Angus Mackay30-Aug-07 2:35
Colin Angus Mackay30-Aug-07 2:35 
GeneralRe: chatting between c# and asp.net Pin
_beginner_30-Aug-07 2:43
_beginner_30-Aug-07 2:43 
GeneralRe: chatting between c# and asp.net Pin
J4amieC30-Aug-07 3:40
J4amieC30-Aug-07 3:40 
GeneralRe: chatting between c# and asp.net Pin
_beginner_30-Aug-07 4:07
_beginner_30-Aug-07 4:07 
GeneralRe: chatting between c# and asp.net Pin
Colin Angus Mackay30-Aug-07 4:11
Colin Angus Mackay30-Aug-07 4:11 
GeneralRe: chatting between c# and asp.net Pin
_beginner_30-Aug-07 4:21
_beginner_30-Aug-07 4:21 
GeneralRe: chatting between c# and asp.net Pin
Not Active30-Aug-07 4:12
mentorNot Active30-Aug-07 4:12 
GeneralRe: chatting between c# and asp.net Pin
_beginner_30-Aug-07 4:22
_beginner_30-Aug-07 4:22 
GeneralRe: chatting between c# and asp.net Pin
Not Active30-Aug-07 4:36
mentorNot Active30-Aug-07 4:36 
GeneralRe: chatting between c# and asp.net Pin
_beginner_30-Aug-07 8:44
_beginner_30-Aug-07 8:44 
Questioncan any one tell me how to encrypt the connection stirng Pin
prasadbuddhika30-Aug-07 2:21
prasadbuddhika30-Aug-07 2:21 
AnswerRe: can any one tell me how to encrypt the connection stirng Pin
snorkie30-Aug-07 2:28
professionalsnorkie30-Aug-07 2:28 
AnswerRe: can any one tell me how to encrypt the connection stirng Pin
Not Active30-Aug-07 2:28
mentorNot Active30-Aug-07 2:28 
QuestionNeed help with an exception Pin
MicealG30-Aug-07 2:21
MicealG30-Aug-07 2:21 
AnswerRe: Need help with an exception Pin
Alaric_30-Aug-07 2:28
professionalAlaric_30-Aug-07 2:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.