I would like to know ..if someone want to explain me...
what is behind command 'END'.
Is this command do complete deleting of variable,pointers and is require PostquitMessage()
api function or not.
from the Help file:
QuoteEND will cause the on-exit list to be iterated. Set a return value by use SETEXITCODE.
When it is encountered it ends the program.
I've used it to fire the subroutines I've set up with ONEXIT that I want executed each time the program ends.
Larry i ask this
because i recieve some strange things when i use PostQuitmessage(0) in few my programs.
anyone else have similar problems.
application simply close ...without crush ,with any visible reason ???
I've never used PostQuitMessage.
Maybe this will help you out:
Why is there a special PostQuitMessage function? (http://blogs.msdn.com/b/oldnewthing/archive/2005/11/04/489028.aspx)
Also, I have no idea how/when you are using PostQuitMessage
but the MSDN says
QuoteIndicates to the system that a thread has made a request to terminate (quit). It is typically used in response to a WM_DESTROY message.
Yes standard way to use PostQuitMessage(0) is under WM_DESTROY but looks to
me that cose closing program without reason.
When i don't use @IDDESTROY then program not close without visible reason,
but sometimes hang in memory (visible in TaskManager)...
that is really strange...