Re: Windows Services

From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 08/10/04


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


Relevant Pages

  • Trouble installing Windows Service created with VB.NET
    ... I am trying to figure out how to make Windows Services using VB.NET. ... have had to manually convert from longname format to, I am assuming, 8.3 ... I seem to remember their being some command line command that can do ... directory that Visual Studio puts my files in, I would like to know the ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Unable to read beyond the end of the stream
    ... "Zak Milas" wrote: ... > I had used the FilePut(FileNum, Employee, Count) command, what ever was in my ... >> M S Herfried K. Wagner ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Standalone gnu-diff like tool in Java
    ... If all I want are the standard shell and command line tools is there ... any advantage in using Cygwin instead of Windows Services for UNIX ...
    (comp.lang.java.programmer)
  • Re: Windows Services
    ... I've built some .NET windows services recently. ... Jeff ... One just waits for a command ...
    (microsoft.public.dotnet.languages.vb)
  • Re: newB GUI library problems
    ... Please post your complete command line to "vbc". ... Herfried K. Wagner [MVP] ...
    (microsoft.public.dotnet.languages.vb)