Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Other Products » Memory Leak? [shaders.dll] - Fixed ^^
Memory Leak? [shaders.dll] - Fixed ^^ [message #413889] Sun, 13 December 2009 03:01 Go to next message
Tunaman
Messages: 1189
Registered: January 2005
Karma: 2
General (1 Star)
Hiya, I've been messing around in shaderhud.cpp and changing some stuff, and I've noticed that there's a file in my renegade directory called "memleak_shaders<number here>.log" containing some information I'm not sure what to make of. Could someone please help me fix what's going on?
I don't believe I have added anything to shaderhud.cpp that would even allocate any memory so I don't think that I've caused this problem with the code I've added.. It might be something I haven't thought about though..
I'm using Visual C++ Express 2008 to compile with btw, if that helps any.

Here's an except from one of the files:
Toggle Spoiler


Edit: Looks like its an error with my compiler(unless the normal shaders.dll has a mem leak) or something.. Sad I just compiled a clean version of shaders.dll and it still has memory leaks.


http://img694.imageshack.us/img694/9055/tunamanlmao.png

[Updated on: Sun, 13 December 2009 22:50]

Report message to a moderator

Re: Memory Leak? [shaders.dll] [message #413919 is a reply to message #413889] Sun, 13 December 2009 14:04 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Don't compile in debug mode if you don't want debugging files to be created at runtime... also your game will run a LOT faster if you use non-debug dll files.

As for the leaks, I wouldn't worry about it, it's probably just stuff that didn't get cleaned up properly at shutdown.


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Sun, 13 December 2009 14:05]

Report message to a moderator

Re: Memory Leak? [shaders.dll] [message #413952 is a reply to message #413889] Sun, 13 December 2009 18:18 Go to previous messageGo to next message
Tunaman
Messages: 1189
Registered: January 2005
Karma: 2
General (1 Star)
Yeah; I do like the debug information while I'm still working on my dll(I'm usually pretty careful but in case I forget to clean something up on my end).
Yeah, the memory leaks didn't seem like a big deal since its only 2-3 items that don't get deleted per instance of ren it seems. I was just wondering if anyone knew a fix. ^^
Thanks for the quick reply!


http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: Memory Leak? [shaders.dll] [message #413968 is a reply to message #413952] Sun, 13 December 2009 21:41 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
Tunaman wrote on Sun, 13 December 2009 20:18

Yeah; I do like the debug information while I'm still working on my dll(I'm usually pretty careful but in case I forget to clean something up on my end).
Yeah, the memory leaks didn't seem like a big deal since its only 2-3 items that don't get deleted per instance of ren it seems. I was just wondering if anyone knew a fix. ^^
Thanks for the quick reply!


There's an issue with 3.4.4's SurfaceClass constructor where the reference count isn't being initialized to 1 iirc.
Re: Memory Leak? [shaders.dll] [message #413974 is a reply to message #413889] Sun, 13 December 2009 22:46 Go to previous message
Tunaman
Messages: 1189
Registered: January 2005
Karma: 2
General (1 Star)
Thank you! Fixing that cleared it up. Smile

http://img694.imageshack.us/img694/9055/tunamanlmao.png
Previous Topic: Buy Back Building
Next Topic: Hosting a Server
Goto Forum:
  


Current Time: Mon May 06 19:33:57 MST 2024

Total time taken to generate the page: 0.00758 seconds