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 » TopWindow&PopUp, TrayIcon » Modal vs non-modal window
Re: Modal vs non-modal window [message #11967 is a reply to message #11950] Fri, 05 October 2007 11:55 Go to previous message
exolon is currently offline  exolon
Messages: 62
Registered: July 2006
Location: 53'21N 6'18W
Member
Just out of curiosity, why did you do:
bool * sent = new bool;


and dereference it all the time and eventually have to delete it?
I would recommend against creating objects dynamically if you don't really need to do it... there's surely no good reason to create inbuilt types like bool and int on the heap, since the pointer on the stack is at least as large as a bool and dereferencing it is ugly and you can make mistakes (including forgetting to delete, or deleting twice).

Use the stack.
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TopWindow Backup/Restore
Next Topic: Minor bug: TopWindow::GetStdSize()
Goto Forum:
  


Current Time: Mon May 06 03:02:49 CEST 2024

Total time taken to generate the page: 0.03848 seconds