Page 1 of 1

fwh7.11 , errorsysw

Posted: Thu Nov 22, 2007 8:29 am
by demont frank
Antonio ,

At line 357 i see :

Code: Select all

   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 :

Code: Select all

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

Code: Select all

DEFINE DIALOG oDlg RESOURCE "TESTXbrowse" OF oWnd 
What i have to do in this case ?

Frank

Posted: Thu Nov 22, 2007 8:36 am
by Antonio Linares
Frank,

>
Are MDI child windows with dialogboxes constructions as :

Code: Select all

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

Code: Select all

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