U++ framework
Do not panic. Ask here before giving up.

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: Sun Sep 13 10:41:10 GMT+2 2026

Total time taken to generate the page: 0.00965 seconds