FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Errsysw not working
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Errsysw not working

Posted: Tue Feb 23, 2021 09:33 PM

I'm overlooking something, but perhaps you can refresh my memory.

Using FWH, Harbour, and Visual Studio Community.

In my main application, I include errsysw.prg and it works perfectly when an error occurs.

I have a subset of my program, using many of the exact same files from the same source directory. When an error occurs, instead of errsysw showing a popup screen with the error and all the data, the program just sends the steps to an hb_out.log file.

I must be overlooking a setting somewhere. Any ideas would be appreciated.

It is NOT a problem with the errsysw.prg, nor is it a problem with Harbour or FWH. It occurs like this on all messages, so errsysw.prg is simply not being triggered.

Thanks.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Errsysw not working

Posted: Wed Feb 24, 2021 07:58 AM

Tim,

Are you calling ErrorBlock( { | oError | MyErrorSystem( oError ) } ) from your main PRG ?

function MyErrorSystem() is a function provided in your own errsysw.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM

Re: Errsysw not working

Posted: Wed Feb 24, 2021 10:55 AM

Hi,

Critical errors do not invoke the standard error system

Show hb_out.log

regards

Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM

Re: Errsysw not working

Posted: Wed Feb 24, 2021 11:09 AM
Antonio Linares wrote:Tim,

Are you calling ErrorBlock( { | oError | MyErrorSystem( oError ) } ) from your main PRG ?

function MyErrorSystem() is a function provided in your own errsysw.prg



In the source dir. there are 2 errorsys prg's. one is more extended but the filename = errsysw_.prg (this program has been a older topic on the forum, but seems to be a enhanced version.

It seems that some programmers here in the forum prefer there own build errorsys. What would be the preference ?
Marc Venken

Using: FWH 23.08 with Harbour
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Errsysw not working

Posted: Wed Feb 24, 2021 12:07 PM

Tim,

Please post the hb_out.log content here

Marc,

You an use your own customized error dialog box, send an email, etc

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Re: Errsysw not working

Posted: Wed Feb 24, 2021 06:31 PM

RESOLVED

My error. I have one variable I'm tracking, which I report in the customized error log, and it wasn't in the sub-version of the program. Thus it was causing the errsysw.prg to error within itself.

All is good now ...

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion