EventLog.WriteEntry Method (String)
Hi, I'm writing a class in C# that uses the EventLog.WriteEntry method. The documentation says that the message size can be32766 bytes long. But when i write a message of 32766 byte, i get a Win32Exception. I then tried reducing the message size to see how long it could be. 31592 bytes was the maximum. I'm running Windows 7 Ultimate, 32 bit. Version 6.1 (Build 7600)
November 3rd, 2009 1:21pm

Hi Oddmar Dam,Perhaps you can try the question in Visual C# General Forums at MSDN as well.Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]
Free Windows Admin Tool Kit Click here and download it now
November 3rd, 2009 3:09pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics