Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2004

Tip: Looking for answers? Try searching our database.

Custom Event Log Causes Windows Internal Error when full.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave Boal - 07 Dec 2004 23:52 GMT
I thought Event Logs overwrite the oldest events when the log is full.

I have created a Custom Event Log for a Windows Service app. When this
Custom Event Log gets full, a call to eventLog.Writeline crashes the service.

When I stop and restart the service, I get a Windows Internal Error and the
service fails to start (because I suspect it never gets past the OnStart
which writes to the event log).

If I empty the Custom Event Log, the service starts fine!

I see no options when creating the Custom Event Log to specify the size, or
that old entries should be overwritten.

Any ideas?

Thanks, Dave
Dave Boal - 08 Dec 2004 00:15 GMT
I just figured out that you can set the properties of a Custom Event Log from
the Windows Event Log viewer.  This resolves my problem, however, I would
like to programatically set the properties of the Custom Event Logs when it
is created...in code.

Thanks, Dave

> I thought Event Logs overwrite the oldest events when the log is full.
>
[quoted text clipped - 13 lines]
>
> Thanks, Dave

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.