?
Solved

Writing Service in VB - Need help urgently

Posted on 2003-11-06
6
Medium Priority
?
314 Views
Last Modified: 2010-05-03
Hi All,

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....

Balaji
0
Comment
Question by:balaji_p
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 5

Accepted Solution

by:
fantasy1001 earned 136 total points
ID: 9698389
Can you use a timer with may be interval of 1 seconds to trigger the services. This can help to release the burden of the computer a bit. You can start and stop the service by just enable/disable the timer
0
 
LVL 9

Assisted Solution

by:Valliappan AN
Valliappan AN earned 132 total points
ID: 9698393
0
 

Assisted Solution

by:ecla
ecla earned 132 total points
ID: 9698754
Use the nstsvc.ocx control it has options to stop and start the service it created...
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question