[wdmaudiodev] Re: Debugging an APO

  • From: William R. Huttel <whuttel@xxxxxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Fri, 6 Jun 2008 21:04:38 -0500


I'm able to use dbgview for viewing debug messages from APOs loaded by AUDIODG.EXE, as long as the following are observed:

dbgview must be run as administrator,

the following must be checked under the "Capture" menu option:

Capture Win32
Capture Global Win32
Capture Kernel
Pass-Through
Capture Events

it may be one of the capture switches which is keeping your messages from getting through, and possibly the "Global Win32" switch.

Best,
Bill Huttel

On Jun 6, 2008, at 6:44 PM, Tim Roberts wrote:

Tim Roberts wrote:I'm just digging in to the creation of a GFX APO, and I'm looking for a few debugging tips.
I don't seem to see my OutputDebugString output in dbgview when my DLL is loaded into the audio engine service.  I do see the messages when it gets loaded by Control Panel, but that's not the interesting case.

How can I insert a new version while I'm debugging?  Even if I disable the Windows Audio and Windows Audio Endpoint Builder services and disable my HDAUDIO device, my APO DLL remains loaded in one of the service host processes, and I can't copy a new version into place while it is loaded.

Any debug hints from folks who have been in the trenches would be appreciated.

Well, for what it's worth, I can get the debug messages if I attach a debugger to the audiodg.exe process itself.  I still don't understand why the messages don't appear in dbgview.

And the issue about not being able to update the DLL seems to have been a transient thing.  As long as I stop the two services, I can replace the DLL just fine.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

Other related posts: