Click here to Skip to main content
15,920,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: What is the best solution for store html/javascripts Pin
Scripter4728-Feb-07 2:59
Scripter4728-Feb-07 2:59 
GeneralRe: What is the best solution for store html/javascripts Pin
mike montagne28-Feb-07 5:59
mike montagne28-Feb-07 5:59 
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 
It's probably not a good idea to do it this way - you really should assert that absolutely nobody is modifying the mdb during your entire read operation. If you're busy copying bytes from the mdb while some guy is saving the mdb, the bytes you get will most likely end up being a corrupted mdb. Some of the bytes you read will be from the "unmodified" mdb, and the rest of the bytes will be from the "newly modified" mdb, and there's no telling which bytes are which.

It'd be best to attempt to open the file for Read access and allow only Read Sharing. If that succeeds, you're guaranteed that nobody can modify the mdb during your copying operation. If it fails, have your program back off, send out some manner of warning (an email or similar), and try again in a few minutes.


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

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

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.