fwh7.11 , errorsysw

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

fwh7.11 , errorsysw

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply