Page 2 of 2

Re: *beginners* - Boiled Down 'HelloWorld' demo with OpenGL

Posted: Sat Aug 23, 2008 12:04 pm
by abaraba
yes, thanks

i was very wrong about those objects being temporary as the allocated memory has nothing to do with a scope... maybe in Java

so, i realized just how terrible that practice could be,
but for the sake of conversation i still think my wrong source and correct source would compile in a binary with same memory footprint, with no memory leak because all the new() operators happen only once in the whole runtime of that application, so there will be no extra memory allocations, but about the same ...even after 100 years ;-)


btw,
4th BoiledDownDemo -"Katamari Damacy remake", screenshots & download:
http://www.bulletphysics.com/Bullet/php ... =17&t=2499

comes with even more memory leaks,
which i should really fix now that i know better.. thank you all for input and feel free to find more bugs!


cheers

Re: *beginners* - Boiled Down 'HelloWorld' demo with OpenGL

Posted: Sun Aug 24, 2008 6:53 am
by z8000
abaraba wrote: comes with even more memory leaks,
What a great feature! ;-)

Cheers