Page 1 of 1

To Antonio: Slow finalization??

Posted: Wed Jul 22, 2009 8:09 pm
by JC
Dear Antonio,

How are you?

I have a new problem into my fivewin 9.0.6... This is my source to finalize the application:

Code: Select all

PROCEDURE SAIR()

   PostQuitMessage( 0 )
   __Quit()

RETURN
But, this this is taking too long. 5 seconds to finish it!
Anything is wrong in my source?

Please, help me!

Re: To Antonio: Slow finalization??

Posted: Wed Jul 22, 2009 8:46 pm
by Enrico Maria Giordano
You don't need of that function. Just return from the main one will properly close your application.

EMG

Re: To Antonio: Slow finalization??

Posted: Wed Jul 22, 2009 8:46 pm
by Antonio Linares
You should not call __Quit()

It is not needed and not recommended

and as Enrico tells you, there is no need also to call PostQuitMessage() as FWH will do it automatically when the main window is ended.