Re: .Net Service - Random Code Execution (.Net Bug?)
- From: "Chris Dunaway" <dunawayc@xxxxxxxxx>
- Date: 3 Jan 2007 06:36:35 -0800
Celldss wrote:
I have a .Net service (VB - 1.1 SP1) deployed in our environment that
is experiencing an odd issue. The service does a series of file &
registry based checks, logs to the event log and uploads the results to
an Oracle database. However, a few clients (a couple hundred or so out
of tens of thousands) are experiencing a rather odd issue.
The service is configure to fire it's checks every 48 hours (using a
timer), or whenever the service starts, whichever is sooner. Some
clients essentially "freak out" and execute the main block of code
several times per second for a period of time, resulting in hundreds of
thousands of records being added to the database in a 48 hour span of
time (instead of a couple). The event logs that are generated by the
service when this happens indicate that blocks of code are being
executed at random. Sometimes the same block is executed multiple
Just a shot in the dark. Could there be something amiss with the
clocks on the affected machines? Is the timer being disabled when
entering the timer event? Can you tell if the timer is firing often
when the problem occurs? What method do you use for the timer? Does
it just tick periodically and you calculate when the 48 hours have
elapsed? Can you describe how you have implemented the timer?
One crude, but effective, debugging method would be to create a simple
logging mechanism that logs to a file. Periodically in the code have
it write out something like "Checkpoint A", "Checkpoint B", etc. so you
can follow the execution path. Have it output the values of pertinent
variables as well. You can then study the results and see if it helps
with the problem.
Good Luck
.
- References:
- .Net Service - Random Code Execution (.Net Bug?)
- From: Celldss
- .Net Service - Random Code Execution (.Net Bug?)
- Prev by Date: Burn CDs in .Net 2.x?
- Next by Date: Re: How to Move the server explorer to the left
- Previous by thread: .Net Service - Random Code Execution (.Net Bug?)
- Next by thread: Newbie question
- Index(es):
Relevant Pages
|