Please enable JavaScript to view this site.

Memory Validator Help

Navigation: Examples > Example Application Launched from a Service

Building the service and application

Scroll Prev Top Next More

 

Example solution files

 

The example solution can be found in the examples\serviceWithAChildProcess subdirectory in the directory where Memory Validator was installed.

 

If the directory is not present, reinstall your software and choose custom or full installation.

 

Example project files

 

The example projects can be found in the subdirectories in the directory where Memory Validator was installed.

 

examples\serviceWithAChildProcess\serviceWithAChildProcess

 

serviceWithAChildProcess.vcproj instructionStep for Microsoft® Visual Studio / .net
 

examples\serviceWithAChildProcess\serviceChildProcess

 

serviceChildProcess.vcproj instructionStep for Microsoft® Visual Studio / .net
 

 

Configurations

 

There are a small number of configurations in each project:

 

Debug / Release instructionStep dynamically links to the svlMVStubService(_x64).lib demonstrating use with the NT Service API  
 

 

Using the service

 

The service is named SVL *** MV Child Process in the control panel services dialog (*** changes depending on the build configuration), and provides the following command line options:

 

-install instructionStep Install the service  
 

-remove instructionStep Uninstall the service

 

-start instructionStep Start the service

 

-stop instructionStep Stop the service
 

-debug instructionStep Run as a console application for debugging
 

-? instructionStep Display the help message
 

-help instructionStep Display the help message

 

 

Open a cmd prompt in administrator mode, navigate to the location of the service executable, and use one of these commands to install, remove, start, stop the service.

 

Examples:

 serviceWithAChildProcess.exe -install

 

 serviceWithAChildProcess.exe -start

 

 serviceWithAChildProcess.exe -stop

 

 serviceWithAChildProcess.exe -remove