Contents Index Topic Contents | |
Previous Topic: Monitoring Stream Status and Network Reception Next Topic: Compact Disc Audio Playback |
Error Handling
The Microsoft® Windows Media™ Player control provides built-in error support by displaying error messages in dialog boxes and on the status bar. Alternatively, you can add error handling to your application by processing error events. If the SendErrorEvents property is true, error message boxes are disabled and the control sends error events instead. If SendErrorEvents is false, the Windows Media Player control displays error dialogs and does not send error events.
Error-handling events supported by the Windows Media Player control include the following:
- The Error event signals that a critical error has occurred.
- The Warning event signals that a non-critical event has occurred.
When your application receives an error event, you can determine the specific nature of the error by checking the following properties:
- HasError property specifies whether the Windows Media Player control currently has an error.
- ErrorCode property specifies a code number associated with the type of error.
- ErrorDescription property specifies a description of the error.
- ErrorCorrection property specifies the type of error correction being used by the Windows Media Player control.
Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.