Sign in to follow this  
shadowmonk

IDirectSoundCapture and Page Faults

Recommended Posts

shadowmonk    122
Hi all, I am trying to figure out why whenever I create the direct sound capture object I always have a page fault delta of 2. This doesn't even go away when I release the object. Any ideas? I've posted some code below as to how I'm creating it. Thanks!
   IDirectSoundCapture *pDSCaptureObj = NULL;

   // create DS capture object
   HRESULT hr = DirectSoundCaptureCreate(&CaptureDeviceInfo.DevGuid, &pDSCaptureObj, NULL);
   if (FAILED (hr))
   {
       // Error
   }

   // Right here is when the page faults start happening
	
   // Release the capture object
   pDSCaptureObj->Release();
   pDSCaptureObj = NULL;

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this