ZachR
ZachR

Reputation: 1

How does one go about fixing a memory leak?

I've got this game server that whether i download the pre-compiled binary or compile the source code myself just leaks until i have to reboot or enter a BSOD. I'm not super keen on C++ just currently classes for my degree but i can look at the code and understand whats going on. I'm just not 'fluent'.

Specifically looking at the resource monitor the modified memory type just fills and fills constantly by about 3-5MB per 5 seconds

is there anything i can do about this?

Upvotes: 0

Views: 306

Answers (2)

mmtauqir
mmtauqir

Reputation: 9319

If you have ever ever heard about a tool called valgrind you can run your C++ code in valgrind to see exactly where the leakages are.

http://valgrind.org/

Upvotes: 1

gumik
gumik

Reputation: 623

There is tool which is helpful for finding memory leaks: http://valgrind.org/

Upvotes: 1

Related Questions