LogEntry ReplacementStrings

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Anyone know how to deal with the ReplacementStrings from the LogEntry class?

When you read a LogEntry.Messages that has extended characters or whatnot,
it throws an exception about converstion overflow - well, there is something
to do with replacementStrings, I just can´t figure how to get pass this.

I´ve tried the most absurd things to get through (I won´t even post what I
have tried or else my gene pool would be haunted by this for centuries).

any help is appreciated.
 
Hi Cablito,

I hope that this helps?

Cor
\\\
Dim myEventLog As New Diagnostics.EventLog("System", ".")
Dim myLogEntryCollection As _
EventLogEntryCollection = myEventLog.Entries
For i As Integer = myLogEntryCollection.Count - 1 To 0 Step -1
Dim myLogEntry As EventLogEntry = myLogEntryCollection(i)
Dim mystrings() As String = myLogEntry.ReplacementStrings
For Each str As String In mystrings
Console.WriteLine(str)
Next
Next
///
 
Back
Top