Página 1 de 1
Linking errosys on apps
Publicado: Jue May 03, 2012 12:20 pm
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
Linking errosys on apps
Publicado: Jue May 03, 2012 1:32 pm
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,
Linking errosys on apps
Publicado: Jue May 03, 2012 3:24 pm
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
Linking errosys on apps
Publicado: Jue May 03, 2012 4:32 pm
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,
Linking errosys on apps
Publicado: Vie May 04, 2012 11:35 am
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
Linking errosys on apps
Publicado: Vie May 04, 2012 12:15 pm
por Bingen Ugaldebere
You can include this on your APP
PROCEDURE ErrorSys()
Errorblock( { | oError | MyErrorManager( oError ) } )
RETURN
Linking errosys on apps
Publicado: Vie May 04, 2012 5:42 pm
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,
Linking errosys on apps
Publicado: Lun May 07, 2012 10:15 am
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