FWH8.07 Debugger Problem

FWH8.07 Debugger Problem

Postby angelo.c » Wed Aug 20, 2008 7:52 am

Hello,

I use FWH8.07 with the Borland c/c++ complier and Ilinker32. I am trying to compile my code which now has at the beginning the few statements found in the Altd.prg to test the debugger. I have read all the other posts and I compiled the FWH source with /b and have taken out the -aa option in the ilink32 linker and removed gtgui.lib and replaced with gtwin.lib and left the hbdebug.lib in. An extract of my batch file is shown below:

[SNIP]
echo $(fwh)\lib\FiveH.lib $(fwh)\lib\FiveHC.lib + >> b32.bc
echo $(hdir)\lib\hbrtl.lib + >> b32.bc
echo $(hdir)\lib\hbvm.lib + >> b32.bc
rem echo $(hdir)\lib\gtgui.lib + >> b32.bc
echo $(hdir)\lib\gtwin.lib + >> b32.bc
echo $(hdir)\lib\hbdebug.lib + >> b32.bc
echo $(hdir)\lib\hblang.lib + >> b32.bc
[SNIP]


When I compile and link, I get the following error:

Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_HB_FUN_HB_GT_GUI' referenced from D:\FIVETECH\FWH\LIB\FIVEH.LIB|ERRSYSW
NMAKE : fatal error U1077: 'C:\Borland\BCC55\bin\ilink32.EXE' : return code '0x2'
Stop.


Can some one point me in the right direction to fix this problem?

Thanks, Angelo C
angelo.c
 
Posts: 36
Joined: Thu Mar 30, 2006 11:19 am

Postby Antonio Linares » Wed Aug 20, 2008 7:59 am

Angelo,

You have to remove this line from fwh\source\function\errsysw.prg: (at the bottom)

REQUEST HB_GT_GUI
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42110
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby angelo.c » Wed Aug 20, 2008 8:12 am

Hi Antonio,

Thanks for your quick reply.

I have commented out the REQUEST statement as directed and link in the ErrSysW.obj in with my other object files and it now links OK.

But when I run my application, a DOS command window (mostly black) appears for a brief moment and then disappears. I get no warning or error messages.

Best Regards, Angelo c
angelo.c
 
Posts: 36
Joined: Thu Mar 30, 2006 11:19 am

Postby angelo.c » Wed Aug 20, 2008 8:21 am

Hi Antonio again.

I finally captured the one line error message on the dos window. It say:

[Quote]
Unrecoverable error 9998: Internal error: screen driver initialization failure

Does this give you more of a clue to what is going on?

Best Regards,
Angelo C
angelo.c
 
Posts: 36
Joined: Thu Mar 30, 2006 11:19 am

Postby Antonio Linares » Wed Aug 20, 2008 8:43 am

Angelo,

Yes, thanks. In fwh\source\function\errsysw.prg: (at the bottom)

change:

REQUEST HB_GT_GUI

into:

REQUEST HB_GT_WIN
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42110
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby angelo.c » Wed Aug 20, 2008 9:17 am

Thanks Antonio,

The debug window now comes up. I will experiment with it some more over the next few days.

Just one question, can the windows that shows the watched variables always stay at the top of the screen.? It would make it easier to watch the variables change as I step through the progam.

Best Regards, Angelo C
angelo.c
 
Posts: 36
Joined: Thu Mar 30, 2006 11:19 am

Postby Antonio Linares » Wed Aug 20, 2008 9:38 am

Angelo,

Its a standard console window so I guess we can not assign styles (always on top) to it.

Maybe check its properties or experiment with SetWindowLong().
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42110
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 100 guests