I use C++ to implement my program, and use Purify to detect memory leaks. I get a message from purify that FMOD leaks memory in FSOUND_Stream_SetBufferSize. Is there any way to release this buffer again?
Here is the report if it hepls:
MLK: Memory leak of 128 bytes from 1 block allocated in FSOUND_Stream_SetBufferSize
Distribution of leaked blocks
128 bytes from 1 block of 128 bytes (0x03c04cc8)
- Hansw asked 16 years ago
The GetMemoryStats() function reports 0 memory allocated after shutting down FMOD. I am begining to suspect that the problem comes from Directsound. Does the GetMemoryStats() only report FMOD mem usage or does it also take into acount that which is allocated by Directsound?
The reason why I suspect Directsound is these two error messages:
DSOUND: Error: Unable to find a topology node supporting the requested property
and a little later:
DSOUND: Error: Process 0x000004C8 leaked 1 secondary buffers
I have yet to find an explanation for the first error message in the DirectX SDK documentation. I’ll keep looking though.
But what I find really strange is that I don’t use the streaming functions at all, and yet Purifier reports this as a leak.
Please login first to submit.