 |
Software > Rational >
|
 |
 |
 |
Using PurifyPlus to test unmanaged code running as a Windows Service
|
| | | Question | | How do I use IBM Rational PurifyPlus (Purify, Quantify and PureCoverage) to collect data from an unmanaged code running as a Microsoft Windows Service? | | | | | | Answer | In order to test unmanaged code running as a Microsoft Windows Service, you will need to perform the following steps:
- Pre-instrument your application using PurifyPlus. This can be achieved by running the following command:
> purify /replace=yes /run=no <your_service_app.exe> Note: for Quantify or PureCoverage, replace 'purify' with 'quantify' or 'coverage' respectively.
The option /replace=yes will replace your original executable with the instrumented version and a backup copy is created (your_service_app.exe.Original) and saved in the same directory as the original. The option /run=no instructs PurifyPlus to instrument your executable without running it. - Set your service to be interactive with the Windows desktop. Open the properties of your Service from Control Panel -> Administrative Tools -> Services. Then right-click on the Service and go to Properties. In the "Log On" tab, check the flag "Allow service to interact with desktop". If you do not perform this, you will not see the PurifyPlus Graphical User Interface (GUI) at runtime.
- It is recommended that you start the PurifyPlus user interface before starting the Service to guarantee that the results are displayed there. This is due to the fact that some Services are not allowed to start other programs, or it is used in a remote terminal session, or due to various other security restrictions. If you do not start the PurifyPlus user interface, you might be see the following problem:
"Error 1053: The service did not respond to the start or control request in a timely fashion." - Start your service.
If you do not see the PurifyPlus user interface after you start your service or have problems with any of the steps above, contact IBM Rational Support.
For instructions on using PurifyPlus to test managed code that is running as a Windows Service, click here. | | | | | | | | Cross Reference information | | Segment | Product | Component | Platform | Version | Edition | | Software Development | Rational Purify | Runtime | Windows | 7.0 | | | Software Development | Rational Quantify | Runtime | Windows | 7.0 | | | Software Development | Rational PureCoverage | Runtime | Windows | 7.0 | |
| | |
 |
| IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml. |
 |
 |
 |
| Please take a moment to complete this form to help us better serve you. |
 |
 |
 |
|
|
|
 |
 |
| Product categories: |
 |
| | Software |  |
| | Software Development |  |
| | Software Quality Management |  |
| | Rational PurifyPlus |  |
| | Runtime |  |
 |
| Operating system(s): |
| |
Windows
|
 |
| Software version: |
| |
7.0
|
 |
| Reference #: |
| |
1410004
|
 |
| IBM Group: |
| | Software Group |
 |
| Modified date: |
| | 2009-11-06 |
 |
|