473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

EntryWrittenEventHandler Failure in Managed C++

I posted this before...perhaps it is a new 'fug' (fug = feature+bug) of .Net? Perhaps nobody knows (not suprising) about how Windows works? I've duplicated this issue on NT4/SP6+.Net-1.1, W2K Server+SP4+NET-1.1 and WXP Pro+SP1. I'd like to get this resolved (I have a bet that nobody knows). TI

I setup this code to Monitor my Application Log and send to a *NIX syslog server. I add a handler for it like so..

l->EntryWritten += new EntryWrittenEventHandler(this, LogMonitor::OnEntryWritten)
l->EnableRaisingEvents = true

And I have the handler (simple for this post
void OnEntryWritten(Object* source, EntryWrittenEventArgs* e)

Console::WriteLine(String::Concat(S"Written: ", e->Entry->Message))
But when log data is written to Application log (5 messages in 5 seconds) I only get notification about 2, or fewer. Is there a known issue where the Events for the EventLog are not properly raised? How would one succussfully monitor the logs? Write my own Polling mechansim

/djb
Nov 22 '05 #1
6 1964
Looks like it's happened again. Nobody knows. I found a KB article that states there was an issue with EventViewer listeners in NT4, looks like the bug is still present in newer systems too. For some reason the lazy, fat and stupid programmers at Microsoft cannot figure out what is wrong with there own system. Ha! Isn't there some MVP (Microsoft Virtual Punk) who can answer this? What's that? You can't figure it out? You can't debug your own defective product? I'm on my own for this, Microsoft has failed me again. Too bad I can't get any money refunded (like last time). I guess my employees who are responsible for reading logs will have to just point and click their way through the EventViewer instead of using some half-intelligent BASH script to parse a central log server. And why should stupid f---ing MS care? Why make the comptuer easy to use? "User Friendly" is just a label on the box. Work harder not smarter.
Nov 22 '05 #2
Looks like it's happened again. Nobody knows. I found a KB article that states there was an issue with EventViewer listeners in NT4, looks like the bug is still present in newer systems too. For some reason the lazy, fat and stupid programmers at Microsoft cannot figure out what is wrong with there own system. Ha! Isn't there some MVP (Microsoft Virtual Punk) who can answer this? What's that? You can't figure it out? You can't debug your own defective product? I'm on my own for this, Microsoft has failed me again. Too bad I can't get any money refunded (like last time). I guess my employees who are responsible for reading logs will have to just point and click their way through the EventViewer instead of using some half-intelligent BASH script to parse a central log server. And why should stupid f---ing MS care? Why make the comptuer easy to use? "User Friendly" is just a label on the box. Work harder not smarter.
Nov 22 '05 #3
Obviously you're new to this game.
- The 'new' developers think that someone cares about these products, and after a fashion they do, but
- The 'good' experienced developers who could fix it don't work for software houses. They work for themselves, or for others who know how good they are, and keep them busy & pay them lots of money. They could help you, would like to help you, but don't have the time
- The 'bad' experienced developers (who couldn't fix it) work at making OTHER people rich. There's no money to made in FIXING shrink-wrap software, so they just write MORE shrinkwrap software to market. So, they may like to help you, but either a) they don't have the skills, or b) they 're too busy writing more products to make someone else rich

Perhaps consider changing from this MS game to another (less glitzy) one, like, say, Linux. You'll get help there; hey, make a little noise, and they'll give you the source code and let you fix it for them

Some people say that after 30 years in this game, I'm getting cynical, but what would I know. Bill Gates is younger than me, and a bit wealthier

Nov 22 '05 #4
Obviously you're new to this game.
- The 'new' developers think that someone cares about these products, and after a fashion they do, but
- The 'good' experienced developers who could fix it don't work for software houses. They work for themselves, or for others who know how good they are, and keep them busy & pay them lots of money. They could help you, would like to help you, but don't have the time
- The 'bad' experienced developers (who couldn't fix it) work at making OTHER people rich. There's no money to made in FIXING shrink-wrap software, so they just write MORE shrinkwrap software to market. So, they may like to help you, but either a) they don't have the skills, or b) they 're too busy writing more products to make someone else rich

Perhaps consider changing from this MS game to another (less glitzy) one, like, say, Linux. You'll get help there; hey, make a little noise, and they'll give you the source code and let you fix it for them

Some people say that after 30 years in this game, I'm getting cynical, but what would I know. Bill Gates is younger than me, and a bit wealthier

Nov 22 '05 #5
I am new to the MS game, I primarily use BSD and Linux. They have compatible system logging (as I'm sure you know). What I was trying to do was to make Windows log to a central server. The MS design of Event log is so stupid to have to visit (or remote shell) a system to view the logs. WTF. Well anyways...since MS won't support (I'll go protest on campus someday ;) ) I guess I'll be left to my own. This MS community certianly is a void compared to my open source buddies. Hate your platform more now...lamers.
Nov 22 '05 #6
I am new to the MS game, I primarily use BSD and Linux. They have compatible system logging (as I'm sure you know). What I was trying to do was to make Windows log to a central server. The MS design of Event log is so stupid to have to visit (or remote shell) a system to view the logs. WTF. Well anyways...since MS won't support (I'll go protest on campus someday ;) ) I guess I'll be left to my own. This MS community certianly is a void compared to my open source buddies. Hate your platform more now...lamers.
Nov 22 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Vinny | last post by:
Greetings, I have the following code fragment that fires an event when an entry is written to the Application and System event logs. For some reason, an event is NOT fired when an entry is...
4
by: J. Marshall Latham | last post by:
I have written an ASP.NET web app in C# that is trying to connect to a database using OleDb. I put code in a dll that uses another dll to create a connection object (and open it if requested) to...
6
by: David Busby | last post by:
I posted this before...perhaps it is a new 'fug' (fug = feature+bug) of .Net? Perhaps nobody knows (not suprising) about how Windows works? I've duplicated this issue on NT4/SP6+.Net-1.1, W2K...
0
by: Graham | last post by:
I have developed a Simple MFC GUI to allow a user to display and control an activity The program works fine on a PC with Visual Studio installed, but when I transfer the progra to a Laptop computer...
2
by: Ausrack Webmaster | last post by:
Nobody got any ideas on the below problem? :-( # psql -V psql (PostgreSQL) 7.0.2 contains readline, history, multibyte support Portions Copyright (c) 1996-2000, PostgreSQL, Inc Portions...
24
by: anders | last post by:
Hi! Im trying to add a A record to a domain name in MS DNS with C#, it's done from a webpage with this code: ManagementClass rr = new ManagementClass(@"root\MicrosoftDNS",...
11
by: zhong | last post by:
Error Message: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention...
9
by: Bern McCarty | last post by:
I am porting stuff from MEC++ syntax to the new C++/CLI syntax. Something that we did in the old syntax that proved to be very valuable was to make sure that the finalizer would purposefully...
8
by: =?Utf-8?B?TWFyaw==?= | last post by:
We've got a wierd failure happening on just one machine. One part of our product uses a 3rd party search implementation (dtSearch). DtSearch has a native core (dten600.dll), late-bound, and a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.