Debug with FW 7.07

Post Reply
User avatar
Maurizio
Posts: 826
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Debug with FW 7.07

Post by Maurizio »

Antonio

I try the debug (ALTD.PRG) with FW 7.07 and xHarbour but it does'n work .
( with FW2.5 it works very well )

Regards MAurizio
User avatar
Antonio Linares
Site Admin
Posts: 42519
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Post by Antonio Linares »

Maurizio,

Are you using GTWIN.lib instead of GTGUI.lib ? (just for debugging)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Maurizio
Posts: 826
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

Antonio ,

debug works with GTWIN.lib

but I have to change always the LIb or there are a better solution ?

Regards Maurizio
User avatar
Antonio Linares
Site Admin
Posts: 42519
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Post by Antonio Linares »

You have to change the lib as the debugger output goes to a text console
regards, saludos

Antonio Linares
www.fivetechsoft.com
jfafive
Posts: 396
Joined: Tue Mar 18, 2008 9:41 pm
Location: Marbella

Debuger

Post by jfafive »

Hola Antonio,

Estoy intentando usar el debug, tras seguir las indicaciones que he visto en el foro.

Pero al reemplazar la llamada a GTGUI.LIB por GTWIN.LIB, me da un error al linkar, que dice así:

Code: Select all | Expand

Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_HB_FUN_HB_GT_GUI' referenced from C:\FWH\LIB\FIVEH.
RRSYSW
* There are errors
User avatar
Antonio Linares
Site Admin
Posts: 42519
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Post by Antonio Linares »

Javier,

Prueba a comentar esta línea en fwh\source\function\errsysw.prg:

// REQUEST HB_GT_GUI

solo para usar el debugger. A ver si te funciona bien, gracias
regards, saludos

Antonio Linares
www.fivetechsoft.com
jfafive
Posts: 396
Joined: Tue Mar 18, 2008 9:41 pm
Location: Marbella

Errsys

Post by jfafive »

Antonio,

¿a que libreria pertenece errsysw.prg?

pues supongo debo recompilarlo y reemplazarlo de alguna libreria ... :?
User avatar
Antonio Linares
Site Admin
Posts: 42519
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Post by Antonio Linares »

Javier,

Pertenece a la de módulos en PRG: FiveH.lib ó FiveHX.lib, según uses Harbour ó xHarbour.

Pero para hacer una prueba es suficiente con que copies el contenido de errsysw.prg al final de tu PRG y ahí lo modifiques, asi no tienes que tocar las librerías :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 42519
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Post by Antonio Linares »

Javier,

La solución correcta es cambiar:

REQUEST HB_GT_GUI

por

REQUEST HB_GT_WIN

en fwh\source\function\errsysw.prg, para que el debugger pueda funcionar con Harbour (esto no es necesario con xHarbour)
regards, saludos

Antonio Linares
www.fivetechsoft.com
jfafive
Posts: 396
Joined: Tue Mar 18, 2008 9:41 pm
Location: Marbella

Post by jfafive »

Antonio,

Ya he compilado con la modificación, pero lo unico que sale al ejecutar el programa, es una ventana con fondo negro tipo MS-DOS. Que no pone nada.

:oops:
User avatar
Antonio Linares
Site Admin
Posts: 42519
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Post by Antonio Linares »

Javier,

Prueba con el código fwh\samples\AltD.prg, gracias
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply