From: Diederick C. N. <dc...@gm...> - 2013-04-07 10:07:16
|
Hi Clemens, I can understand where you're coming from, but no need to worry. What I was discussing is that, right now, everything is in static arrays, not on the heap, and whether it should stay like that. So right now, nothing needs to be freed, freeing would be an error. Best, Dee On Sun, Apr 7, 2013 at 4:13 PM, Clemens Schäfermeier <cs1...@fh...> wrote: > Hi Dee, > thanks for your effort. Since I'm one of those pedantic valgrind-users, > I was following this with some headache. Depending on the graphicsdriver > and on the setting, even a simple program will produce around 4 to 10 > errors with quite a long trace through the different freeglut files, > ending up at some system files. If you know this, and you are sure that > it is *not* an error inside freeglut, one can create a suppression list > to make those errors invisible. Anyways, it took some time for me to get > used to this. > Now these arrays won't help people like me, especially when they're new > to the topic ;) My philosophy is always to clean up those things I > create. Unfortunately, I didn't come to a good solution for this, but I > would be happy if you could point out those arrays which can be freed by > the user. > Best regards > Clemens > >> Hi John, Nigel, >> >> On Sun, Apr 7, 2013 at 8:54 AM, John Tsiombikas <nu...@me...> wrote: >>> On Sat, Apr 06, 2013 at 11:38:49PM +0800, Diederick C. Niehorster wrote: >>>> I total, 118844 floats, or about 464 kilobytes are used for these >>>> arrays, which are possibly/quite likely of no use to the user at all - >>>> how many people use these objects after all? >>> >>> I wouldn't be bothered by a few hundred kilobytes that won't be even >>> demand-paged in by the OS loader at all if unused. They'll only use up a >>> small amount of virtual address space. >> >> Ok, lets keep it as it is then. >> >>>> My question: is this acceptable or should i avoid the waste and do >>>> cleanup on freeglut deinit? >>> >>> Deallocating memory on deinit is pretty pointless, since IIRC it's only >>> called at program exit. >> >> It is (Raymond Chen of MSFT even recommends not doing it as Windows >> will do it quicker for you). It would trigger valgrind notifications, >> but they'd be unimportant as the memory is only "leaked" upon exit and >> then cleaned up by the OS. >> >> Cool, all done with this then :) >> Thanks for the guidance and making sure i dont do something stupid. As >> said before, I have gaps in my computer system knowledge, hence the >> occasional questions on the list to check whether what i did is >> sensible. >> >> Best, >> Dee >> >> Dee >> >> ------------------------------------------------------------------------------ >> Minimize network downtime and maximize team effectiveness. >> Reduce network management and security costs.Learn how to hire >> the most talented Cisco Certified professionals. Visit the >> Employer Resources Portal >> http://www.cisco.com/web/learning/employer_resources/index.html >> _______________________________________________ >> Freeglut-developer mailing list >> Fre...@li... >> https://lists.sourceforge.net/lists/listinfo/freeglut-developer >> > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Freeglut-developer mailing list > Fre...@li... > https://lists.sourceforge.net/lists/listinfo/freeglut-developer |