M
M
Maxim K2020-07-05 20:16:59
C++ / C#
Maxim K, 2020-07-05 20:16:59

How to properly implement memory cleaning for online radio?

Hello. Written by online radio, used bass.dll. Sotbstvenno, when the radio is playing (stream) - after an hour, an hour and a half - the process in the task manager grows to 400 megabytes, and then it just hangs or starts to lag. How to clear memory? Source here: https://github.com/maksmkv/C-radio_online

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2020-07-05
@yarosroman

See how to do memory profiling for leaks, especially when working with unmanaged resources. I would advise wrapping the places where bass is used in using. This will help force cleanup of unmanaged resources.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question