Click here to Skip to main content
15,919,931 members
Home / Discussions / C#
   

C#

 
QuestionReading an open file. Pin
eggsovereasy27-Feb-07 4:56
eggsovereasy27-Feb-07 4:56 
AnswerRe: Reading an open file. Pin
Not Active27-Feb-07 5:18
mentorNot Active27-Feb-07 5:18 
GeneralRe: Reading an open file. Pin
eggsovereasy27-Feb-07 5:31
eggsovereasy27-Feb-07 5:31 
AnswerRe: Reading an open file. Pin
lost in transition 27-Feb-07 5:44
lost in transition 27-Feb-07 5:44 
GeneralRe: Reading an open file. Pin
eggsovereasy27-Feb-07 5:55
eggsovereasy27-Feb-07 5:55 
AnswerRe: Reading an open file. Pin
Russell Morris27-Feb-07 8:02
Russell Morris27-Feb-07 8:02 
GeneralRe: Reading an open file. Pin
eggsovereasy27-Feb-07 11:12
eggsovereasy27-Feb-07 11:12 
GeneralRe: Reading an open file. Pin
Russell Morris27-Feb-07 13:30
Russell Morris27-Feb-07 13:30 
eggsovereasy wrote:
Wouldn't Access itself prevent the user from saving data while another process is reading it? I tried setting FileShare.Read, but I get the IOException.

Drop back to not specifying any FileShare stuff in the FileStream constructor - that should be the equivalent of FileShare.None. I'm not sure why I suggested FileShare.Read: it won't do you any good, and there may be some goofiness in doing that over a network share. When Access opens the mdb file, I'm willing to bet it opens it with the equivalent of FileShare.None as well, because Access (well, the MS Jet DB engine underneath it all) was never designed to be a multi-user DB system, to my knowledge.

BTW: Typically, you can tell if someone else has the FileName.mdb open by looking for a file named FileName.ldb in the same directory. Access creates the FileName.ldb while it has the FileName.mdb open, and removes it when it closes FileName.mdb. It's not a 100% guarantee, however, because if Access doesn't exit cleanly the FileName.ldb sticks around until someone opens up the FileName.mdb again and exits Access cleanly.


"I hope he can see this, because I'm doing it as hard as I can" - Ignignot

QuestionCollapsiblePanelExtender problem Pin
jaganil27-Feb-07 4:43
jaganil27-Feb-07 4:43 
QuestionDirectX under C# Pin
Mark T.27-Feb-07 4:28
Mark T.27-Feb-07 4:28 
QuestionApplication config Pin
mail57235227-Feb-07 4:02
mail57235227-Feb-07 4:02 
AnswerRe: Application config Pin
Not Active27-Feb-07 5:16
mentorNot Active27-Feb-07 5:16 
GeneralClass Names Pin
Brady Kelly27-Feb-07 3:38
Brady Kelly27-Feb-07 3:38 
GeneralRe: Class Names Pin
Stefan Troschuetz27-Feb-07 3:49
Stefan Troschuetz27-Feb-07 3:49 
AnswerRe: Class Names Pin
Guffa27-Feb-07 4:01
Guffa27-Feb-07 4:01 
GeneralRe: Class Names Pin
Brady Kelly27-Feb-07 4:12
Brady Kelly27-Feb-07 4:12 
QuestionRS232 Com Port Control Pin
Billy Whizz27-Feb-07 3:33
Billy Whizz27-Feb-07 3:33 
AnswerRe: RS232 Com Port Control Pin
Stefan Troschuetz27-Feb-07 4:36
Stefan Troschuetz27-Feb-07 4:36 
GeneralRe: RS232 Com Port Control Pin
Billy Whizz27-Feb-07 20:37
Billy Whizz27-Feb-07 20:37 
GeneralRe: RS232 Com Port Control Pin
Luc Pattyn28-Feb-07 3:32
sitebuilderLuc Pattyn28-Feb-07 3:32 
QuestionGetting Child nodes count of an element Pin
madhusri27-Feb-07 3:31
madhusri27-Feb-07 3:31 
AnswerRe: Getting Child nodes count of an element Pin
Ennis Ray Lynch, Jr.27-Feb-07 3:46
Ennis Ray Lynch, Jr.27-Feb-07 3:46 
Questionaccesing form control values in class Pin
balakpn27-Feb-07 3:22
balakpn27-Feb-07 3:22 
QuestionC# CLR Problems... Pin
Illegal Operation27-Feb-07 3:04
Illegal Operation27-Feb-07 3:04 
AnswerRe: C# CLR Problems... Pin
kubben27-Feb-07 3:11
kubben27-Feb-07 3:11 

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.