Buenos d铆as,
se puede evitar la inclusi贸n de errorsys en el ejecutable ?
Muchas gracias.
Saludos
Buenos d铆as,
se puede evitar la inclusi贸n de errorsys en el ejecutable ?
Muchas gracias.
Saludos
Baxajaun
Yo no lo uso.
Saludos,
Adhemar
Hola,
me refiero a que cuando el programa de error en ejcuci贸n no genere el fichero de error ni muestre el error por pantalla.
Muchas gracias.
Saludos,
Tienes que redirigir los errores. Creo que se hace con la funcion ErrorBlock().
bDefErrHandler:=ErrorBlock( { || NIL } )bDefErrHandler:=ErrorBlock( NIL )bDefErrHandler:=ErrorBlock( { | oError | TuManejadorDeError( oError ) } )// Punto donde necesitas que se active tu rutina de manejo de errores en caso de un error
bDefErrHandler:=ErrorBlock( { | oError | TuManejadorDeError( oError ) } )
...
...
tu_codigo...
...
...
// Punto donde restauras la llamada al manejador de errores por defecto de [x]Harbour
ErrorBlock( bDefErrHandler )
...
Syntax
ERRORBLOCK([<bErrorHandler>]) --> bCurrentErrorHandler
Arguments
<bErrorHandler> is the code block to execute whenever a runtime
error occurs. When evaluated, the <bErrorHandler> is passed an error
object as an argument by the system.
Returns
ERRORBLOCK() returns the current error handling code block. If no error
handling block has been posted since the program was invoked,
ERRORBLOCK() returns the default error handling block.