|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Service not going to 'Started'I have written a program that runs perfectly. I converted this to a
service. Upon starting the service, it will stay indefinantly on "Starting" and never move to "Started". The wierd thing here is that the service runs perfectly even though it says starting. Any ideas why a service would nevere move to started, yet still runs exactly as it should? Thanks Micah A. Norman "minoad" <min***@gmail.com> wrote in news:1158514217.125403.115880 @i3g2000cwc.googlegroups.com:> I have written a program that runs perfectly. I converted this to a Did you place all your code into the On Starting Event?> service. Upon starting the service, it will stay indefinantly on > "Starting" and never move to "Started". The wierd thing here is that > the service runs perfectly even though it says starting. Any ideas why > a service would nevere move to started, yet still runs exactly as it > should? Rather start a new thread, or use a timer... rather than looping inside the onstarting event. A service "starts" after the on starting event completes. I always use a sub called "StartMyService" or something similar to place all
my code. Then in the OnStart event, I either start a timer to call StartMyService, or use System.Threading.Threadpool.QueueUserWorkItem(AddressOf StartMyService) Show quoteHide quote "minoad" <min***@gmail.com> wrote in message news:1158519330.606468.149780@k70g2000cwa.googlegroups.com... > No, but i did place the refrence to my 'Start' procedure. > > Micah A. Norman >
Sorting Arraylist Of Objects
System Idle Process force cast of object to mytype... How to ensure DB changes complete? Method Address from MethodInfo: How do I get it? mouse freezes in Visual Studio CreateToolhelp32Snapshot Pop up dialog after Main Form displayed Can't access controls programmatically when inside FormView control (newbie -VB 2005 EE) TextBox question |
|||||||||||||||||||||||