I
I
iXelper2020-05-06 15:45:24
C++ / C#
iXelper, 2020-05-06 15:45:24

Why does Xnet eat RAM?

Good day.
There is a loop that repeats the get request every two seconds. I am using the xNet library for get requests. And there was a problem with devouring 0.5 MB of RAM for each request, tell me please, what is the reason for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2020-05-06
@firedragon

Don't dispose the object or clean up memory somewhere.
Try running in debug mode and take 2 or more memory snapshots between calls to your method.
And then compare.

P
Peter, 2020-05-06
@petermzg

You didn't provide the code you wrote, so it's impossible to give a definitive answer.
I suggest checking that you call Dispose on all the created objects that you have finished working with and that implement the IDisposable interface

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question