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 » Community » Newbie corner » Usage of "new" and "delete" in U++
Re: Usage of "new" and "delete" in U++ [message #27141 is a reply to message #27135] Sun, 27 June 2010 22:56 Go to previous messageGo to previous message
andrei_natanael is currently offline  andrei_natanael
Messages: 262
Registered: January 2009
Experienced Member
It is possible to create widgets on stack or on heap, but U++ developers encourage to use stack because C++ take care of allocated memory, so you won't have to think about allocations/deallocation problems. There are only few times when you need to allocate on heap, you may had encounter that in U++ GUI Tutorial, point 6 - "Multiple main windows". I think it's better to use every feature from the language (let compiler take care of your memory) and don't complicate you're self with new/delete. Use pointers only to point to things.

Andrei
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: U++ vs Qt
Next Topic: Message from the system.
Goto Forum:
  


Current Time: Thu May 09 04:52:24 CEST 2024

Total time taken to generate the page: 0.02706 seconds