LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a known resource leak when using SDK mci commands through CVI?

I am working on a Windows 98 machine with CVI 6.0. When I try to record an audio file using the SDK mciSendCommand or mciSendString functions, I see a resource leak. I am using TaskInfo 2002 to monitor the number of handles in my application. When I open the waveaudio device, the handle count increases by 2. When I close the waveaudio device, the handle count decreases by 1. This results in a resource leak of 1 handle every time I record audio. Does anybody know what is causing this or how I can plug this leak? Is there a different method of recording audio that will allow me to record audio while I am playing audio? Thanks for any help you can provide.
0 Kudos
Message 1 of 2
(2,808 Views)
You may want to reach the url :
http://perso.wanadoo.fr/philippe.baucour/download.html
Once here, strike CTRL + F then ype in "PC Sound Extended".
Then you should be able to dowload a working CVI sample project that take
advantage of the PC Sound card available on you PC in order to do data
acquisition (you need to click on the small floppy disk on the left to
download the zip file). All source code is available (including SDK stuff)

Another CVI sample project in the same page show how to deal with Wav file
(see SMS sample in the UIR section)

I hope this help
--
Philippe
Feel free to visit : http://perso.wanadoo.fr/philippe.baucour




"Douglas C. Papay" a écrit dans le message de
news:5065000000080000009B890000-1042324653000@exchange.ni.com...
> I am wo
rking on a Windows 98 machine with CVI 6.0. When I try to
> record an audio file using the SDK mciSendCommand or mciSendString
> functions, I see a resource leak. I am using TaskInfo 2002 to monitor
> the number of handles in my application. When I open the waveaudio
> device, the handle count increases by 2. When I close the waveaudio
> device, the handle count decreases by 1. This results in a resource
> leak of 1 handle every time I record audio. Does anybody know what is
> causing this or how I can plug this leak? Is there a different method
> of recording audio that will allow me to record audio while I am
> playing audio? Thanks for any help you can provide.
0 Kudos
Message 2 of 2
(2,808 Views)