FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour To Antonio: Slow finalization??
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
To Antonio: Slow finalization??
Posted: Wed Jul 22, 2009 08:09 PM
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 (fw): Select all Collapse
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!
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: To Antonio: Slow finalization??
Posted: Wed Jul 22, 2009 08:46 PM

You don't need of that function. Just return from the main one will properly close your application.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: To Antonio: Slow finalization??
Posted: Wed Jul 22, 2009 08:46 PM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion