Click here to Skip to main content
15,907,497 members
Home / Discussions / C#
   

C#

 
GeneralRe: thread safe log class with simple functionality Pin
Member 1206160021-Oct-15 8:16
Member 1206160021-Oct-15 8:16 
GeneralRe: thread safe log class with simple functionality Pin
Richard Deeming21-Oct-15 9:06
mveRichard Deeming21-Oct-15 9:06 
GeneralRe: thread safe log class with simple functionality Pin
Member 1206160021-Oct-15 9:33
Member 1206160021-Oct-15 9:33 
GeneralRe: thread safe log class with simple functionality Pin
Richard Deeming22-Oct-15 2:01
mveRichard Deeming22-Oct-15 2:01 
GeneralRe: thread safe log class with simple functionality Pin
Member 1206160022-Oct-15 5:24
Member 1206160022-Oct-15 5:24 
GeneralRe: thread safe log class with simple functionality Pin
Richard Deeming22-Oct-15 5:35
mveRichard Deeming22-Oct-15 5:35 
GeneralRe: thread safe log class with simple functionality Pin
Member 1206160022-Oct-15 6:31
Member 1206160022-Oct-15 6:31 
GeneralRe: thread safe log class with simple functionality Pin
Richard Deeming22-Oct-15 6:52
mveRichard Deeming22-Oct-15 6:52 
user20044 wrote:
AppendAllText uses FileShare.None flag?

AppendAllLines uses FileShare.Read. That will allow other processes to read the file, but not write to it.

user20044 wrote:
So what are shortcomings of this final version of the class you think?

As previously mentioned, if multiple processes try to write to the same file at the same time, you'll get an exception, and the log entry from the second process will be lost.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: thread safe log class with simple functionality Pin
Member 1206160022-Oct-15 7:07
Member 1206160022-Oct-15 7:07 
GeneralRe: thread safe log class with simple functionality Pin
Richard Deeming22-Oct-15 7:18
mveRichard Deeming22-Oct-15 7:18 
GeneralRe: thread safe log class with simple functionality Pin
Member 1206160022-Oct-15 10:36
Member 1206160022-Oct-15 10:36 
GeneralRe: thread safe log class with simple functionality Pin
Member 1206160022-Oct-15 6:35
Member 1206160022-Oct-15 6:35 
GeneralRe: thread safe log class with simple functionality Pin
Richard Deeming22-Oct-15 6:54
mveRichard Deeming22-Oct-15 6:54 
GeneralRe: thread safe log class with simple functionality Pin
Richard Deeming22-Oct-15 2:39
mveRichard Deeming22-Oct-15 2:39 
GeneralRe: thread safe log class with simple functionality Pin
Member 1206160022-Oct-15 5:34
Member 1206160022-Oct-15 5:34 
GeneralRe: thread safe log class with simple functionality Pin
Richard Deeming22-Oct-15 5:37
mveRichard Deeming22-Oct-15 5:37 
AnswerRe: thread safe log class with simple functionality Pin
John Torjo21-Oct-15 23:08
professionalJohn Torjo21-Oct-15 23:08 
QuestionTabelLayoutPanel Resizing at Runtime c#.net Pin
Darshan BS20-Oct-15 21:47
Darshan BS20-Oct-15 21:47 
AnswerRe: TabelLayoutPanel Resizing at Runtime c#.net Pin
OriginalGriff20-Oct-15 22:31
mveOriginalGriff20-Oct-15 22:31 
GeneralRe: TabelLayoutPanel Resizing at Runtime c#.net Pin
Darshan BS20-Oct-15 22:41
Darshan BS20-Oct-15 22:41 
GeneralRe: TabelLayoutPanel Resizing at Runtime c#.net Pin
OriginalGriff20-Oct-15 22:50
mveOriginalGriff20-Oct-15 22:50 
AnswerRe: TabelLayoutPanel Resizing at Runtime c#.net Pin
BillWoodruff21-Oct-15 2:01
professionalBillWoodruff21-Oct-15 2:01 
Questionneed help. No error in code but not getting output. here is my code. trying to accessing data from active directory. Pin
rahul38420-Oct-15 17:31
rahul38420-Oct-15 17:31 
AnswerRe: need help. No error in code but not getting output. here is my code. trying to accessing data from active directory. Pin
Richard MacCutchan20-Oct-15 21:38
mveRichard MacCutchan20-Oct-15 21:38 
AnswerRe: need help. No error in code but not getting output. here is my code. trying to accessing data from active directory. Pin
Richard Deeming21-Oct-15 1:48
mveRichard Deeming21-Oct-15 1:48 

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.