Click here to Skip to main content
16,005,467 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: reading query results into vb Pin
pmarfleet15-Nov-07 10:25
pmarfleet15-Nov-07 10:25 
GeneralRe: reading query results into vb Pin
cj433115-Nov-07 10:37
cj433115-Nov-07 10:37 
GeneralRe: reading query results into vb Pin
pmarfleet15-Nov-07 10:50
pmarfleet15-Nov-07 10:50 
GeneralRe: reading query results into vb Pin
cj433115-Nov-07 10:56
cj433115-Nov-07 10:56 
GeneralRe: reading query results into vb Pin
pmarfleet15-Nov-07 11:03
pmarfleet15-Nov-07 11:03 
QuestionAccessed by another process Pin
KreativeKai15-Nov-07 8:52
professionalKreativeKai15-Nov-07 8:52 
AnswerRe: Accessed by another process Pin
Christian Graus15-Nov-07 9:24
protectorChristian Graus15-Nov-07 9:24 
AnswerRe: Accessed by another process Pin
Luc Pattyn15-Nov-07 10:56
sitebuilderLuc Pattyn15-Nov-07 10:56 
FYI:

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.

The 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)

BTW: if all you need is Read, make sure to allow others to read as well, i.e.
use File.Open(path, FileMode.Open, FileAccess.Read, FileShare.Read)

Smile | :)



Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


GeneralRe: Accessed by another process Pin
KreativeKai16-Nov-07 3:25
professionalKreativeKai16-Nov-07 3:25 
QuestionPreload images / Speed up images Pin
SiXke15-Nov-07 8:04
SiXke15-Nov-07 8:04 
AnswerRe: Preload images / Speed up images Pin
Luc Pattyn15-Nov-07 8:20
sitebuilderLuc Pattyn15-Nov-07 8:20 
GeneralRe: Preload images / Speed up images Pin
SiXke15-Nov-07 9:26
SiXke15-Nov-07 9:26 
GeneralRe: Preload images / Speed up images Pin
Luc Pattyn15-Nov-07 9:35
sitebuilderLuc Pattyn15-Nov-07 9:35 
GeneralRe: Preload images / Speed up images Pin
SiXke16-Nov-07 5:49
SiXke16-Nov-07 5:49 
GeneralRe: Preload images / Speed up images Pin
Luc Pattyn16-Nov-07 6:04
sitebuilderLuc Pattyn16-Nov-07 6:04 
GeneralRe: Preload images / Speed up images Pin
SiXke17-Nov-07 6:07
SiXke17-Nov-07 6:07 
GeneralRe: Preload images / Speed up images Pin
SiXke24-Nov-07 4:34
SiXke24-Nov-07 4:34 
QuestionPHPbb 3 RC 7 password hash [modified] Pin
LegionFX15-Nov-07 5:54
LegionFX15-Nov-07 5:54 
AnswerRe: PHPbb 3 RC 7 password hash Pin
pmarfleet15-Nov-07 7:21
pmarfleet15-Nov-07 7:21 
GeneralRe: PHPbb 3 RC 7 password hash Pin
LegionFX15-Nov-07 8:00
LegionFX15-Nov-07 8:00 
GeneralRe: PHPbb 3 RC 7 password hash Pin
pmarfleet15-Nov-07 9:26
pmarfleet15-Nov-07 9:26 
GeneralRe: PHPbb 3 RC 7 password hash Pin
DigiOz Multimedia15-Nov-07 11:39
DigiOz Multimedia15-Nov-07 11:39 
QuestionWindow Order? Pin
Violinboy215-Nov-07 5:22
Violinboy215-Nov-07 5:22 
AnswerRe: Window Order? Pin
Violinboy218-Nov-07 5:40
Violinboy218-Nov-07 5:40 
QuestionHow to retreave text from ASP.net or HTMl to sql table Pin
Vimalsoft(Pty) Ltd15-Nov-07 4:28
professionalVimalsoft(Pty) Ltd15-Nov-07 4: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.