G
ggillard
Hi,
I'm new to writing services and found it pretty easy using VB.NET.
My service has an internal timer that fires every 3 seconds. Each
time it fires it opens a SQL DB and looks for a specific set of
records. Each record it finds it sends to SAP and then changes their
status so they won't be sent again.
When I run this code out side of a service ( I built a small
userinterface for testing) it runs flawlessly. However the service
will start duplicating (sending records 2-4 times). In this example I
put about 500 records in the table and start the service. It works
great for the first 30 records.
It seems as if it gets interrupted before it gets a chance to flag a
record as already processed and then the next time it fires it finds
the "already processed" data as needing to be processed.
What am I missing with a "windows service" that would interupt my code
AND not resume at the point of interruption? It's almost as if the
program re-starts over an over again.
Any help or ideas are appreciated.
I'm new to writing services and found it pretty easy using VB.NET.
My service has an internal timer that fires every 3 seconds. Each
time it fires it opens a SQL DB and looks for a specific set of
records. Each record it finds it sends to SAP and then changes their
status so they won't be sent again.
When I run this code out side of a service ( I built a small
userinterface for testing) it runs flawlessly. However the service
will start duplicating (sending records 2-4 times). In this example I
put about 500 records in the table and start the service. It works
great for the first 30 records.
It seems as if it gets interrupted before it gets a chance to flag a
record as already processed and then the next time it fires it finds
the "already processed" data as needing to be processed.
What am I missing with a "windows service" that would interupt my code
AND not resume at the point of interruption? It's almost as if the
program re-starts over an over again.
Any help or ideas are appreciated.