In a VB6 application I use the WaveInRecorder class to record and monitor the audio input of the soundcard. With this application I record files from 1 hour. Then the recording stops, and a new recording wil start. This applications runs 24/7. When I look in the taskmanager from Windows 10, I see that the memory use every day is higher, so my conclusion is that there is a memory leak in my application.
I found out that it's happening when I call the clsRecorder.StartRecord. For a couple of hours I tried to find where it's happening but I can't find it.
I test it on this way: every second I call clsRecorder.StartRecord and I see the memory use increases. I think there goes something wrong with 'InitWaveInWnd'.
What can cause a memory leak? All objects will be set to nothing. Can it be caused by variable? Has anyone an idee?
To start the recording I use:
To stop the recording I use:Code:If Not clsRecorder.StartRecord("44100", Val(ini.Stereo) + 1) Then MsgBox "Unable to start monitoring!", vbExclamation End If
Download the WaveInRecorder class:Code:clsRecorder.StopRecord
https://www.vbforums.com/attachment....4&d=1298433000




Reply With Quote
