Writing Service in VB - Need help urgently
Posted on 2003-11-06
I need to write a service that has to run continuously(This is the first time that am writing a service). But the user has option to start and stop the service.
Since this is running continulosly, i need to take a lot care on performance issue.
1. Since it is running continuously, am using an indefinite while loop to make it run continously.Is it a right way to implement this kind of service?
2. I am using 3 recordset objects for each loop. And I made it as an singleton object. Is it OK?
3. When the service runs on indefinite loop, it uses resource and i am not even able access the stop button in the screen(vb form).
can you pls let me know how to implement a service of this kind and any info for better performance so that it doesn't eat up system resources.
Any info on the above questions will be really helpful to me...As I have just 75 points left with me am alloting it.pls dont mind the points....