开发者

How does one go about fixing a memory leak?

开发者 https://www.devze.com 2023-03-27 11:54 出处:网络
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 currentl

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'.

Sp开发者_如何学JAVAecifically 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?


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


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/

0

精彩评论

暂无评论...
验证码 换一张
取 消