fwh7.11 , errorsysw

fwh7.11 , errorsysw

Postby demont frank » Thu Nov 22, 2007 8:29 am

Antonio ,

At line 357 i see :
Code: Select all  Expand view
   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  Expand view
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  Expand view
DEFINE DIALOG oDlg RESOURCE "TESTXbrowse" OF oWnd


What i have to do in this case ?

Frank
demont frank
 
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Postby Antonio Linares » Thu Nov 22, 2007 8:36 am

Frank,

>
Are MDI child windows with dialogboxes constructions as :
Code: Select all  Expand view
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  Expand view
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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 90 guests