FWH8.07 Debugger Problem

Post Reply
angelo.c
Posts: 36
Joined: Thu Mar 30, 2006 11:19 am

FWH8.07 Debugger Problem

Post by angelo.c »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
angelo.c
Posts: 36
Joined: Thu Mar 30, 2006 11:19 am

Post by angelo.c »

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

Post by angelo.c »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
angelo.c
Posts: 36
Joined: Thu Mar 30, 2006 11:19 am

Post by angelo.c »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
Post Reply