Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » How does widget/variable destruction in U++ work?
Re: How does widget/variable destruction in U++ work? [message #38360 is a reply to message #38357] Wed, 12 December 2012 11:53 Go to previous message
crydev is currently offline  crydev
Messages: 151
Registered: October 2012
Location: Netherlands
Experienced Member
Quote:

U++ uses its own allocator, which works little bit different It allocates memory in chunks and then gives it to the variables that requested it (when new is called). When the memory is returned (delete is called) it keeps the allocated memory to allow future allocation to work faster. I'm not sure if it is describe in detail somewhere, but try searching the site and forum. Try repeating the action that allocated the memory again, the memory usage should not increase second time.


Indeed, I also noticed that if I repeat opening the dialog the memory will not increase again. That clarifies the memory allocation system to me.

I will test the profile and memory functions for my application to find out how it works. Thanks for your reponse Honza, it is clear to me now Smile

Crydev
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is there a Zip/UnZip example?
Next Topic: GuiLock when creating widgets
Goto Forum:
  


Current Time: Mon May 06 17:27:16 CEST 2024

Total time taken to generate the page: 0.02752 seconds