FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour fwh7.11 , errorsysw
Posts: 167
Joined: Thu Mar 22, 2007 11:24 AM
fwh7.11 , errorsysw
Posted: Thu Nov 22, 2007 08:29 AM
Antonio ,

At line 357 i see :
   if lRet == nil .or. ( !LWRunning() .and. lRet )
      SET RESOURCES TO
      ErrorLevel( 1 )
      // Add these lines if using MDI child windows with dialogboxes
      // for n = 1 to Len( GetAllWin() )
      //    if ValType( GetAllWin()[ n ] ) == "O"
      //       GetAllWin()[ n ]:UnLink()
      //    endif   
      // next   
      QUIT              // must be QUIT !!!
   endif


Why are this lines not automatic included ? I suppose that when no MDI child windows are used len(GetAllWin()) = 0 ?

It has no sense that we have to check the source to make changes for our aplication

Are MDI child windows with dialogboxes constructions as :
DEFINE WINDOW oWndChild MDICHILD OF oWnd
DEFINE DIALOG oDlg RESOURCE "TESTXbrowse" OF oWndChild


I don't use this contruction anymore , but i have a MDI window with
DEFINE DIALOG oDlg RESOURCE "TESTXbrowse" OF oWnd


What i have to do in this case ?

Frank
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
fwh7.11 , errorsysw
Posted: Thu Nov 22, 2007 08:36 AM
Frank,

>
Are MDI child windows with dialogboxes constructions as :
DEFINE WINDOW oWndChild MDICHILD OF oWnd
DEFINE DIALOG oDlg RESOURCE "TESTXbrowse" OF oWndChild

>

Yes,

>
I don't use this contruction anymore , but i have a MDI window with
DEFINE DIALOG oDlg RESOURCE "TESTXbrowse" OF oWnd


What i have to do in this case ?
>

Nothing, that code is fine

We left that code there to be used on some circumstances where embedded dialogboxes are not properly destroyed
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion