windows service
-
hi all I put out the "Process.start" code, but it is not working. Only first inform("start") works, anothers not work Thats no problem on manual..
What does the code look like now?
-
What does the code look like now?
protected override void OnStart(string[] args) { inform("START");// for event log timer1.Start(); proccessorid();//I give all system info learnsystem(); }
-
protected override void OnStart(string[] args) { inform("START");// for event log timer1.Start(); proccessorid();//I give all system info learnsystem(); }
I think when I try learning proccesorid and all system info , the code is failed. I put out them and service started normally in boot.. But I have to take those informations.
-
a lot of services start before which is depend on how am I understand?
-
Open services.msc. Right click on any service. You can see properties menu in pop menu. When you open properties of the service. you will see dependencies tab. Regards, Sunil G.
no dependencies
-
no dependencies
-
anyway start type is automatic
-
protected override void OnStart(string[] args) { inform("START");// for event log timer1.Start(); proccessorid();//I give all system info learnsystem(); }
Get the learnsystem out of the OnStart; it doesn't belong there. OnStart must start the process and exit; that's all.
-
Get the learnsystem out of the OnStart; it doesn't belong there. OnStart must start the process and exit; that's all.
where do I get it
-
where do I get it
Probably in the main part of the Service -- perhaps check to see whether or not the system is learned:
If not learned
Try to learn
If failed, log and return
Do stuffYou could then periodically check for changes in the system, too.