Please enable JavaScript to view this site.

Memory Validator Help

Navigation: » No topics above this level «

Monitor a service

Scroll Prev Top Next More

 

Monitoring a service

 

Monitoring a service works for:

 

native services

.Net services

mixed mode services.

 

Native Services

 

If you are working with native services you must use the NT Service API in your service as well as using the Monitor a service method below.

 

.Net Services

 

Memory Validator won't attach until some .Net code is executed.

 

If there is native code being called prior to the .Net code, Memory Validator won't monitor that code, only the native code called after the first .Net code that is called.

 

To monitor any native code called prior to your .Net code, use the NT Service API.

 

note When working with Memory Validator and services, you still start the service the way you normally do - e.g. with the service control manager.

 

The code that you have embedded into your service then contacts Memory Validator, which you should have running before starting the service.

 

To start monitoring a service:

 

menu File menu instructionStep Monitor a service... instructionStep shows the Monitor a service dialog below

 

There is no toolbar or shortcut option.

 

 

The monitor a service dialog

 

First ensure the service is installed, but not running.

 

Set the service to monitor, choose whether to start collecting data right away, and click OK.

 

monitor-a-service

 

 

Service to monitor instructionStep type or Browse to set the service name to monitor

 

OK instructionStep waits for the service to start before injecting into it

 

Start the service in the normal manner, e.g. from the control panel, the command line or programmatically.

 

 

Data collection

 

Depending on your application, and what you want to validate, you may want to start collecting data as soon as injection has happened, or do it later.

 

If your program has a complex start-up procedure, initialising lots of data, it may be much faster not to collect data until the program has launched.

 

If it's the startup procedure you want to validate, obviously start collecting data immediately.

 

seeAlsoSee the section on controlling data collection for how to turn collection on and off after launch.