When calling waveInReset ( multimedia API), in order to stop recording and return all queued buffers, the program halts.
No wave functions are called from within the wave-in callback function, which could be the reason for a deadlock.
In fact, after waveInReset is called, the wave-in callback is not called at all, which is weird, because the callback should be called for every queued buffer which was sent using waveInAddBuffer.
What could be the reason for the halt

waveInReset halts program
cjshrader
Asking specific Win32 programming questions in a forum meant for C++ language issues is not the best strategy. You will find more qualified people here for Multimedia related questions in the Win32 newsgroups. Try here:
http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.mmedia&lang=en&cr=US
TimNeale
killem
rockman88
I posted my question here after not finding a Win32 forum.
I wasn't aware of the existance of the newsgroups.
Thanks for the redirection ;-)
Garg
The only thread which is running is the the window application thread, and its stack is something like this:
CMyDialog::SomeFunction(), line xxx
CWaveRecorder::Stop() , line yyy // ( the call to waveInReset() appears at this line)
JesusChris
And what do you see on the callstack
Coreth
Yeah, this forum seems to act as a "catch-all" for anything smelling like C++. Good luck with your question. I see that you got a deeper response already!
Brian
masuday