Click here to Skip to main content
15,887,822 members
Home / Discussions / C#
   

C#

 
AnswerRe: Write log from multiple instances of an application. Pin
Richard Deeming3-Feb-16 4:02
mveRichard Deeming3-Feb-16 4:02 
GeneralRe: Write log from multiple instances of an application. Pin
NJdotnetdev3-Feb-16 4:25
NJdotnetdev3-Feb-16 4:25 
GeneralRe: Write log from multiple instances of an application. Pin
Richard MacCutchan3-Feb-16 4:46
mveRichard MacCutchan3-Feb-16 4:46 
GeneralRe: Write log from multiple instances of an application. Pin
NJdotnetdev3-Feb-16 7:45
NJdotnetdev3-Feb-16 7:45 
GeneralRe: Write log from multiple instances of an application. Pin
Richard Deeming3-Feb-16 9:16
mveRichard Deeming3-Feb-16 9:16 
AnswerRe: Write log from multiple instances of an application. Pin
Daniel Pfeffer3-Feb-16 5:50
professionalDaniel Pfeffer3-Feb-16 5:50 
AnswerRe: Write log from multiple instances of an application. Pin
Gerry Schmitz3-Feb-16 8:15
mveGerry Schmitz3-Feb-16 8:15 
AnswerRe: Write log from multiple instances of an application. Pin
Eddy Vluggen3-Feb-16 9:15
professionalEddy Vluggen3-Feb-16 9:15 
NJdotnetdev wrote:
The only question in mind is how I can make sure that only one instance of the
loaded dll is writing to the log file at a given time.
You can't. I can create a new AppDomain and load your dll again.

As long as the logger does what it is intended to do (log a message and uniquely identify the origin) things should work, even if loaded more than once, or, multiple versions of the same library Smile | :)

Imagine writing a new product. Some dev finds out how to create a mini-dump, and includes an option to send the mini-dump along with the logging. Your new product uses YourCompanyLogging2.0, the improved logger; whereas the client has a different product on his/her machine which depends on YourCompanyLogging1.0. It knows nothing of the extra filepath it is supposed to send, and would throw and ArgumentNullException if the new routine is launched.

There is a whole host of dragons ahead, and the subject you are diving into is called "DLL HEL". There is no neat solution there.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

AnswerRe: Write log from multiple instances of an application. Pin
John Torjo3-Feb-16 13:47
professionalJohn Torjo3-Feb-16 13:47 
QuestionI want write process synchronization for .Net applictaion Pin
Member 110856472-Feb-16 19:49
Member 110856472-Feb-16 19:49 
AnswerRe: I want write process synchronization for .Net applictaion Pin
Dave Kreskowiak3-Feb-16 2:43
mveDave Kreskowiak3-Feb-16 2:43 
QuestionWriting complex overload methods for LINQ queries Pin
Kenneth Haugland2-Feb-16 4:40
mvaKenneth Haugland2-Feb-16 4:40 
AnswerRe: Writing complex overload methods for LINQ queries Pin
Sascha Lefèvre2-Feb-16 5:08
professionalSascha Lefèvre2-Feb-16 5:08 
GeneralRe: Writing complex overload methods for LINQ queries Pin
Kenneth Haugland2-Feb-16 5:51
mvaKenneth Haugland2-Feb-16 5:51 
GeneralRe: Writing complex overload methods for LINQ queries Pin
Sascha Lefèvre2-Feb-16 6:15
professionalSascha Lefèvre2-Feb-16 6:15 
GeneralRe: Writing complex overload methods for LINQ queries Pin
Kenneth Haugland2-Feb-16 6:30
mvaKenneth Haugland2-Feb-16 6:30 
GeneralRe: Writing complex overload methods for LINQ queries Pin
Sascha Lefèvre2-Feb-16 7:19
professionalSascha Lefèvre2-Feb-16 7:19 
AnswerRe: Writing complex overload methods for LINQ queries Pin
Kenneth Haugland12-Feb-16 6:50
mvaKenneth Haugland12-Feb-16 6:50 
GeneralRe: Writing complex overload methods for LINQ queries Pin
Sascha Lefèvre12-Feb-16 9:34
professionalSascha Lefèvre12-Feb-16 9:34 
QuestionSaveFileDialog Pin
Mrkhoza1-Feb-16 23:28
professionalMrkhoza1-Feb-16 23:28 
AnswerRe: SaveFileDialog PinPopular
OriginalGriff1-Feb-16 23:40
mveOriginalGriff1-Feb-16 23:40 
AnswerRe: SaveFileDialog Pin
BillWoodruff2-Feb-16 0:02
professionalBillWoodruff2-Feb-16 0:02 
AnswerRe: SaveFileDialog Pin
Dave Kreskowiak2-Feb-16 1:27
mveDave Kreskowiak2-Feb-16 1:27 
GeneralRe: SaveFileDialog Pin
BillWoodruff2-Feb-16 2:13
professionalBillWoodruff2-Feb-16 2:13 
GeneralRe: SaveFileDialog Pin
Dave Kreskowiak2-Feb-16 3:51
mveDave Kreskowiak2-Feb-16 3:51 

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.