Pages: 1
Author Topic: Debugging Your Project: Finding Memory Leaks  (Read 5809 times)
Offline (Male) hpg678
Posted on: October 22, 2018, 06:40:35 am

Location: Barbados
Joined: Mar 2017
Posts: 283

View Profile Email
i was having some memory leaks problems with a project of mine. One of the developers (gfundies) mentioned using "Test Harness' to find them. It not only solved my problem but also pointed out other errors/inconsistencies within my code. Which is why i thought it'd be a great tip on Debugging for you guys.
The Test Harness segment can be found in Game Settings-> Compiler.What i did is run my project, then copy/compare the results.

I have used this method on my Linux machine. I haven't tried it on Windows or Mac, but it should work fine.

I'm not sure if this method is the most efficient way but , it works for me now at least. Who know, maybe the guys will construct something more efficient like an automated process writing to a file or something else........who knows........... :)

[compromised account]
Offline (Male) Goombert
Reply #1 Posted on: October 30, 2018, 10:26:52 am

Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
Thanks so much for sharing these pro tips with the community Hugar! I am going to set this topic sticky for now, later a section could be added to the Wiki about this.

I too would like to see a built-in memory leak detector, perhaps we can get to it someday with RGM. For now, using the test-harness is a perfectly acceptable approach to dealing with this.
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Pages: 1