From: Tony Johansson on 6 May 2010 08:27 Hi! Here I create an EventLog called MyTestLog and MyTestLog2. The strange thing that I find is that all sources like MyTestSource must only exist in one and only one EventLog In this example I get error if I try to add a source MyTestSource to new EventLog called MyTestLog2 So I can't find the point why a soucre must only belong to one EventLog ?? Can somebody explain that. EventLog Demolog = new EventLog("MyTestLog"); Demolog.Source = "MyTestSource"; Demolog.WriteEntry("CreateEventLog called", EventLogEntryType.Information); EventLog Demolog2 = new EventLog("MyTestLog2"); Demolog2.Source = "MyTestSource"; Demolog2.WriteEntry("CreateEventLog called", EventLogEntryType.Information); //Tony
|
Pages: 1 Prev: try & catch Next: OOP issue: should I pass an object or an object property? |