Memory leak in BASS
category: code [glöplog]
BASS has worked fine for a while, but recently it began allocating more and more memory.
Here's an example of memory use of the basstest example project running with no audio playing or loaded. The program was compiled in Release mode.
After a few minutes this leak makes the program very slow and completely unusable. Has anyone else faced this same problem?
I can eliminate the leak by not initializing BASS, or disabling all audio devices so the init functions fails.
I'm using BASS 2.4.10 and Visual Studio 2012 (11.0.61030.00 Update 4)
The code I use to initialize the library:
Relevant DxDiag sections.
Here's an example of memory use of the basstest example project running with no audio playing or loaded. The program was compiled in Release mode.
After a few minutes this leak makes the program very slow and completely unusable. Has anyone else faced this same problem?
I can eliminate the leak by not initializing BASS, or disabling all audio devices so the init functions fails.
I'm using BASS 2.4.10 and Visual Studio 2012 (11.0.61030.00 Update 4)
The code I use to initialize the library:
Code:
if (!BASS_Init(-1, 44100, BASS_DEVICE_LATENCY, 0, NULL))
LOG_ERROR("Couldn't initialize BASS");
Relevant DxDiag sections.
I guess this appears only with particular versions of BASS?
Quote:
but recently
what did you change?
The problem occured also with BASS 2.3. Well I, uh, rebooted the computer and now it's fine. So problem solved I guess?
The memory load increases when the song starts playing, but that's pretty much expected behaviour, isn't it?
The memory load increases when the song starts playing, but that's pretty much expected behaviour, isn't it?
Quote:
The memory load increases when the song starts playing, but that's pretty much expected behaviour, isn't it?
If you play the song twice, does it continue to increase ? if yes then there is definitly a problem...
Quote:
The problem occured also with BASS 2.3. Well I, uh, rebooted the computer and now it's fine. So problem solved I guess?
Sounds like something was wonky with your audio drivers :/