Re: Windows Services
From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 08/10/04
- Next message: Tim Wiseman: "Question from a newbie"
- Previous message: Herfried K. Wagner [MVP]: "Re: loading a form through reflection"
- In reply to: bbdobuddy: "Windows Services"
- Messages sorted by: [ date ] [ thread ]
Date: 10 Aug 2004 22:45:45 +0200
* =?Utf-8?B?YmJkb2J1ZGR5?= <bbdobuddy@discussions.microsoft.com> scripsit:
> I have written two simple Windows Services. One just waits for a command to
> command to come through that just calls a simple function in another class
> that produces "Hello World" to event log. The other service just passes the
> command to the first service every 30 seconds. However when I load and run
> both services I keep getting an error every 30 seconds that says "Failed to
> process service command." Any ideas. Thanks for the help in advance
In the 'OnStart' method, start a new thread that does the work and leave
'OnStart' as soon as possible.
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
- Next message: Tim Wiseman: "Question from a newbie"
- Previous message: Herfried K. Wagner [MVP]: "Re: loading a form through reflection"
- In reply to: bbdobuddy: "Windows Services"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|