Please enable JavaScript to view this site.

Bug Validator Help

Navigation: Examples > Example Application Launched from a Service

Monitoring the application launched from the service

Scroll Prev Top Next More

 

Once the example service and example application are built, the next step is to test them using Bug Validator.

 

Installing the service

 

If you haven't installed the service, do the following:

 

open an administrator mode cmd prompt

 

navigate to the directory containing the serviceWithAProcess.exe to install

 

serviceWithAProcess.exe -install  

 

 

Monitoring the application launched by the service

 

Prerequisites

 

example service has been installed, but not started (if service has been started, stop the service)

 

example service and example application have been built (application must use the NT Service API as demonstrated in attachToBugValidator())

 

example application executable is in the same directory as the example service (this is only a requirement for the example)

 

 

The following process is used to monitor the application launched by the service:

 

From the Launch menu choose Services > Monitor a Service...

 

 launch-menu-monitor-a-service

 

The Monitor a service dialog is displayed

 

 monitor-a-service-empty

 

Use Browse... to open the file chooser dialog and choose the application that will be monitored by Bug Validator. This is the application that is launched by the service. Do not choose the service

 

 monitor-a-service-child-process

 

Click OK

 

Bug Validator sets up a variety of parameters then displays a dialog box asking you to start you service. Click OK to dismiss the dialog

 

 please-start-your-service-application

 

Start your service. For the example serviceWithAChildProcess.exe do the following

oopen an administrator mode cmd prompt

onavigate to the directory containing the serviceWithAProcess.exe to start

oserviceWithAProcess.exe -start  

oserviceWithAProcess.exe starts and launches the child process serviceChildProcess.exe that will be monitored

 

The target application contacts Bug Validator

 

Data is collected until the target process finishes executing

 

Bug Validator displays the results