Windows Services Debugging
Mark Pearce · Apress eBooks · 2003
Creating a Windows service with VB.Classic is always a messy and error-prone activity. You can use the srvany utility or the ntsvc.ocx control, but both of these methods have problems and debugging the resulting issues is difficult and frustrating (see Microsoft Knowledge Base article Q175948 for some warnings about the problems). This restriction on VB.Classic’s capability to create reliable Windows services is a shame because these programs can be invaluable for creating long-running processes that can function without an interactive user. I’ve used Windows services to act as permanently available middle-tier application components, as load-balancing database gateways, as application sentinels to monitor various components, and as programs that allow remote control (over an intranet) of other services on a machine. These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.