In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Linking errosys on apps

Xailer professional forum in English
Responder
Pedro Sousa e Faro
Mensajes: 91
Registrado: Mié May 30, 2007 5:25 pm

Linking errosys on apps

Mensaje por Pedro Sousa e Faro »

Hi ,
I made a little change on errorsys.prg to capture "applications errors"
and sending by e-mail .
I link "errorsys" to my apps but it don't work.
Maybe Xailer is using the errorsys that remains in Xailer.lib instead of
errosys linked to the apps
How can i use errorsys linked in apps ?
Regards
Pedro Faro
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Linking errosys on apps

Mensaje por ignacio »

Pedro,
Is a Borland linker bug that uses the errorsys() found on Xailer lib instead of yours. The easiest way to solve it is changing your function name and redirect the errorblock() to that new function. You can also eliminate that module from Xailer.lib, but you have to remember to do it everytime you upgrade your Xailer version.
Regards,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Pedro Sousa e Faro
Mensajes: 91
Registrado: Mié May 30, 2007 5:25 pm

Linking errosys on apps

Mensaje por Pedro Sousa e Faro »

Thanks Ignacio,
I would prefer first method, instead of +- errorsys on Xailer.lib
Can you publish a small sample how redirect " the errorBlock() ".
Regards
"Ignacio Ortiz de Zúñiga" escreveu na mensagem
news:4fa26cde$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
Pedro,
Is a Borland linker bug that uses the errorsys() found on
Xailer lib instead of yours. The easiest way to solve it is
changing your function name and redirect the errorblock() to
that new function. You can also eliminate that module from
Xailer.lib, but you have to remember to do it everytime you
upgrade your Xailer version.
Regards,
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer/Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Linking errosys on apps

Mensaje por ignacio »

Pedro Sousa e Faro escribió el jue, 03 mayo 2012 15:24Thanks Ignacio,
I would prefer first method, instead of +- errorsys on Xailer.lib
Can you publish a small sample how redirect " the errorBlock() ".
Take a look at this link:
http://www.itlnet.net/programming/progr ... e/c53g01c/ ng40105.html
Regards,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Pedro Sousa e Faro
Mensajes: 91
Registrado: Mié May 30, 2007 5:25 pm

Linking errosys on apps

Mensaje por Pedro Sousa e Faro »

Hi Ignacio,
Ok. Implemented thanks
One more thing.
Since our costumers doesn't have rights to write on apps folder , is it
possible the "error.log" can be written in other folder different for
aplication folder ?.
regards
Pedro
"Ignacio Ortiz de Zúñiga" escreveu na mensagem
news:4fa29716$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
Pedro Sousa e Faro escribió el jue, 03 mayo 2012 15:24
> Thanks Ignacio,
>
> I would prefer first method, instead of +- errorsys on
> Xailer.lib
>
> Can you publish a small sample how redirect " the
> errorBlock() ".
Take a look a this link:
http://www.itlnet.net/programming/progr ... e/c53g01c/ ng40105.html
Regards,
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer/Xailer team]
http://www.xailer.com
http://www.xailer.info
Bingen Ugaldebere
Mensajes: 1310
Registrado: Mié Sep 26, 2007 7:12 pm

Linking errosys on apps

Mensaje por Bingen Ugaldebere »

You can include this on your APP
PROCEDURE ErrorSys()
Errorblock( { | oError | MyErrorManager( oError ) } )
RETURN
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Linking errosys on apps

Mensaje por ignacio »

Pedro Sousa e Faro escribió el vie, 04 mayo 2012 11:35Hi Ignacio,
Since our costumers doesn't have rights to write on apps folder , is it
possible the "error.log" can be written in other folder different for
aplication folder ?.
From errorsys.prg:
STATIC FUNCTION LogError( oError )
LOCAL cProcName
LOCAL nHandle, nCount, nWorkArea := Select()
LOCAL lWorkAreas := .F.
nHandle := FCreate( "Error.log", 0 )
Just change the first FCreate() parameter.
Regards,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Pedro Sousa e Faro
Mensajes: 91
Registrado: Mié May 30, 2007 5:25 pm

Linking errosys on apps

Mensaje por Pedro Sousa e Faro »

Tanks to all.
I didn´t know that was so simple to call:
PROCEDURE ErrorSys() // --> n/a
Errorblock( { | oError | XSError( oError ) } )
RETURN
and change errorsys.prg (with other name) whatever ewe like.
Regards.
Pedro.
"Ignacio Ortiz de Zúñiga" escreveu na mensagem
news:4fa3f8d1$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
Pedro Sousa e Faro escribió el vie, 04 mayo 2012 11:35
> Hi Ignacio,
> Since our costumers doesn't have rights to write on apps
> folder , is it possible the "error.log" can be written in other folder
> different for aplication folder ?.
From errorsys.prg:
STATIC FUNCTION LogError( oError )
LOCAL cProcName
LOCAL nHandle, nCount, nWorkArea := Select()
LOCAL lWorkAreas := .F.
nHandle := FCreate( "Error.log", 0 )
Just change the first FCreate() parameter.
Regards,
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer/Xailer team]
http://www.xailer.com
http://www.xailer.info
Responder