Errsysw not working

Errsysw not working

Postby TimStone » Tue Feb 23, 2021 9: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
User avatar
TimStone
 
Posts: 2943
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Errsysw not working

Postby Antonio Linares » Wed Feb 24, 2021 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42060
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Errsysw not working

Postby hmpaquito » Wed Feb 24, 2021 10:55 am

Hi,

Critical errors do not invoke the standard error system

Show hb_out.log

regards
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Errsysw not working

Postby Marc Venken » 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.04 with Harbour
User avatar
Marc Venken
 
Posts: 1425
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: Errsysw not working

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

Re: Errsysw not working

Postby TimStone » Wed Feb 24, 2021 6: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 ...
Last edited by TimStone on Wed Feb 24, 2021 8:25 pm, edited 1 time in total.
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
User avatar
TimStone
 
Posts: 2943
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 41 guests