Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The UPnP AV Framework uses three debug zones to output errors, warnings, and informational tracing messages. Each EXE or DLL has its own set of debug zones.
The UPnP AV Framework functionality is defined in a static library that is linked into the same module as the code that uses the UPnP AV Framework. Because of this, the code that uses the UPnP AV Framework must define the UPnP AV Framework debug zones if it wants to output UPnP AV Framework debug zone information.
The first three debug zones in the dpCurSettingsvariable must be allocated to the UPnP AV Framework. To make allocation in your own modules easy, the ZONE_AV_constants and DEFAULT_AV_ZONES constant (which uses the BIT_AV_constants) are defined in av_upnp.h.
For example, the following dpCurSettingsdeclaration defines all three UPnP AV Framework debug zones. The use of DEFAULT_AV_ZONES turns on the error and warning debug zones by default.
Copy Code | |
---|---|
// Debug zones for this module DBGPARAM dpCurSettings = { TEXT("<process or module name>"), { ZONE_AV_ERROR_NAME, ZONE_AV_WARN_NAME, ZONE_AV_TRACE_NAME, ... // all remaining strings using, for example, L"" }, DEFAULT_AV_ZONES // | any other default zones }; |