title: WaveIn API fails on mobile platform during work
body: <p>I am capturing real time audio on a Pocket PC device in C#/.NET, using a
  WaveIn P/Invoke example. I am recycling the <code>WAVEHDR</code>
  buffers by doing a <code>waveInUnprepareHeader</code>, <code>waveInPrepareHeader</code>,
  <code>waveInAddBuffer</code> sequence. This all works fine for about 2 - 60 seconds, but after, <code>waveInUnprepareHeader</code>, <code>waveInPrepareHeader</code>, and <code>waveInAddBuffer</code> (all of them) returns an <code>INVALPARAM</code> error and audio input ceases.</p>
  
  <p>How can i avoid this bug and solve the problem?</p>