Memory Leak Problem (maybe)
Okay, here''s what''s happening. There is barely anything going on with my program (DX8), it just draws a spinning triangle (the spinning code was taken from the SDK). I was working on a bezier patch engine, when noticed wierd things and took out those classes and put in the triangle to see if it was really somewhere in my patch code. I noticed that after a while the spinning would get really choppy, keep in mind it started just fine. It isn''t the timer function so i''m thinking it may be a memory leak. If this sounds right, I would appreciate any tips on techniques for tracking them down. Granted I could totally be wrong.
Thanks;
Prairie
There is a neat tutorial on tracking memory leaks at Flipcode. I read it earlier today. I don''t feel like finding the actual URL, so go there and click tutorials and it is somewhere on the list. It is REALLY easy to implement and makes no changes to your existing code.
--------------------
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
--------------------
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
Visit the ROAD Programming Website for more programming help.
--------------------
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor
Thanks for the reply. I looked there earlier, but must''ve over-looked it. I check it out again.
Prairie
Prairie
If it is a memory leak (and a severe one if your program is slowing down because of it), you can check that with the System Monitor, which you can find under Programs -> Accessories -> System Tools. The graphic under "Memory Manager: Allocated Memory" should be an increasing line if your program continuously allocates memory.
--- axelP
--- axelP
--- axelP
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement