Platform SDK: Performance Monitoring

Error Handling in the DLL

Use event logging to record errors that occur during any of the functions in the performance DLL. Logging error events aids in troubleshooting applications providing performance data during development and after installation. Be careful not to log error events on every call to the Collect function, however, because data collection can be frequent.

The performance library logs the following errors to the event log if the performance library has problems with the Open function. If one of the errors listed below occurs, then the performance library makes no further calls to this performance DLL. Instead, the DLL is unloaded and data for the object provided by the performance DLL is not returned with the performance data.