Eso se corrige añadiendo
Code: Select all
#ifdef __HARBOUR__
#define __CLASSINS __CLASSINSTANCE
#endif
Code: Select all
#ifdef __HARBOUR__
#define __CLASSINS __CLASSINSTANCE
#endif
Code: Select all
/* Enclose in a custom ErrorBlock to catch OOP Errors */
// bError:= ERRORBLOCK( {|oError| ::Error( oError )} )
bError:= ERRORBLOCK( {|oError| Break( oError )} ) // cambio el manejador.
BEGIN SEQUENCE
FOR cx = 1 TO nLen
/* ignore strings with a leading Underscore */
IF !( StrChar( aDict[cx], 1) == '_')
/* Method */
IF ASCAN( aDict, LEFT( "_" + aDict[cx], 10 ) ) == 0
AADD( aMeth, { aDict[cx] } )
/* Var */
ELSE
BEGIN SEQUENCE // <--- desde acá
uData = OSend( oClient, aDict[cx] )
RECOVER USING oError
uData = NIL
END SEQUENCE // <--- hasta acá
AADD ( aIvar, { VALTYPE( uData ), aDict[cx], ::Val2Char( uData )})
ENDIF
ENDIF
NEXT
RECOVER USING oError
eval( bError, oError )
END SEQUENCE
ERRORBLOCK( bError )