[Mono-list] service lock file disappears, service keeps running
Travis Staloch
twostepted at yahoo.com
Fri Jan 4 09:45:26 EST 2008
I think I've answered my own question. Sorry. I forgot to build the service in 'release mode' with these lines:
System.ServiceProcess.ServiceBase[] ServicesToRun;
ServicesToRun = new System.ServiceProcess.ServiceBase[] { new ServiceBaseDerivedClass() };
System.ServiceProcess.ServiceBase.Run(ServicesToRun);
Rather than these:
ServiceBaseDerivedClass DebugService = new ServiceBaseDerivedClass();
DebugService.OnStart(null);
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080104/c13f304a/attachment.html
More information about the Mono-list
mailing list