Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

the_grip

Memory Leak Question...

This topic is 5452 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i''m using VC++ 6.0, and i''m used to seeing memory leak info in the output window when there is allocated memory that is not deallocated. However, on working on a new project, i noticed that i haven''t received any messages. Since i''m constructing complex data structures, i thought, "Hmm... this is worth a look." So i allocated a char at the beginning of the program and did not deallocate it. No memory leak message. Is there something i need to enable in order for memory leak info to output to the debug window? Thanks! "You call him Dr. Grip, doll!"

Share this post


Link to post
Share on other sites
Advertisement
Same here... sometimes VC++ just seems to "miss" a few memory leaks, especially if they're smaller ones. Also seems to depend on the machine.

I had a programm which leaked about a few hundred kB. I let it run in debug mode (inside the compiler) on my big machine with 1GB ram. No problems at all. That's why I thought it was running fine.

Then, a few days later I did the same on a significantly smaller machine (256 MB), and immediatelly I got reports about memory leaks.

I hadn't changed anything about the part that caused the leaks during the time (since I thought it was working), so the leaks have been there on the other machine as well. That's why I usually test programms on both machines now, just to make sure .

[edited by - Wildfire on August 18, 2003 2:57:42 AM]

Share this post


Link to post
Share on other sites
I found the answer:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/vxconenablingmemoryleakdetection.asp

"You call him Dr. Grip, doll!"

[edited by - the_grip on August 18, 2003 10:34:10 AM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!