Search the web
Sign In
New User? Sign Up
d_lab · D Lab
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
memory leak   Message List  
Reply | Forward Message #129 of 169 |
Re: memory leak

Ok, i have looked at the project and now i know where your impression
of a memory leak comes from. It is from the implementation of
Vector3f, which allocates and returns a new vector at every operation.
It is a very small amount, but then the memory usage grows very slowly
as well.

For performance reasons, the old vectors not any longer in use are not
being deleted. Depending on how much free memory the computer has, the
memory usage of a program will grow for a while, then stop at a
certain point. This is normal for current implementation. It is *not*
a memory leak.

I would argue that Vector3f should be made a struct.

I haven't investigated yet why the program crashes at exit, i'm up to
it yet. I'll rewrite the initialization and tell you then.

-eye




Thu Sep 30, 2004 1:08 pm

eye_midiclub
Offline Offline
Send Email Send Email

Forward
Message #129 of 169 |
Expand Messages Author Sort by Date

Is there anyone here that might want to take a look at my project, a pong game using sdl + opengl and help me out figure where the heck is that leak? I cant...
gpineda2013
Offline
Sep 13, 2004
5:08 am

... a ... is ... program ... Memory leak? Why do you think it's a memory leak? The GC might look as if it was leaking memory for a while, and clean up later....
eye_midiclub
Offline Send Email
Sep 28, 2004
10:29 am

Ok, i have looked at the project and now i know where your impression of a memory leak comes from. It is from the implementation of Vector3f, which allocates...
eye_midiclub
Offline Send Email
Sep 30, 2004
1:08 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help