Calling the property EventLogEntry.Message locks up my application

  • Thread starter Thread starter john
  • Start date Start date
J

john

I have a service that checks the event log for certain types of error
messages. It kept locking up so I put in debugging code to see where
the problem was. It's locking up when I call the property
EventLogEntry.Message. I have search message boards and have found a
few people complaining that this property throws a strange exception.
It doesn't just lock up the thread that is calling it, but it locks up
other unrelated threads too. In fact, the service gets frozen so badly
that when you try to stop the service from the services panel, it
doesn't doesn't respond.

Any ideas? Thanks in advance.
 
I am still hoping someone might be able to enlighten me on this. I
decompiled the .NET assembly which has the code for
EventLogEntry.Message and it's pretty convoluted. It doesn't just
return a string. It does all sorts of things, including looking at the
registry and checking security information. Any ideas?
 
Back
Top