Page 2 of 2

Re: Error report (errsysw_.prg)

PostPosted: Tue Jul 02, 2019 7:38 pm
by mtajkov
Antonio,

I have no problem with the error, I made it intentionally to check if it works in version 15.07 as it does in version 12.08.

Regards,
Milos

Re: Error report (errsysw_.prg)

PostPosted: Tue Jul 02, 2019 7:42 pm
by Antonio Linares
So then, what is the error that you have ?

Re: Error report (errsysw_.prg)

PostPosted: Tue Jul 02, 2019 8:51 pm
by mtajkov
if the user gets an error while using the application in version 12.08 he was able to send me a mail with error.log. I want to go to version 15.07. but this option does not work, why?

I'm sorry for my English

Regards,
Milos

Re: Error report (errsysw_.prg)

PostPosted: Wed Jul 03, 2019 11:50 am
by karinha
An example?

Re: Error report (errsysw_.prg)

PostPosted: Wed Jul 03, 2019 1:13 pm
by Antonio Linares
Milos,

Please post here your errorsys PRG so we can check why sending an email is no longer working, thanks

Re: Error report (errsysw_.prg)

PostPosted: Wed Jul 03, 2019 9:05 pm
by TimStone
Several days ago I posted a question on this thread and it disappeared. So I will ask it again.

The suggestion is to NOT use errorsysw.prg. Why ? I took it and modified it to provide very useful information when an error does occur. That is what I link into my application. Using the default would limit the data I can get and that would not be helpful. So, why are you recommending NOT using errorsysw ?

Re: Error report (errsysw_.prg)

PostPosted: Thu Jul 04, 2019 8:00 pm
by mtajkov
I'm sorry if I'm not clear (maybe it's because of my bad English ...). In version 15.07, I do not receive an error report (error.log does not exist), while in version 12.08 it exists and could be sent by mail, which is very important to me by the user.

Regards.
Milos

Re: Error report (errsysw_.prg)

PostPosted: Fri Jul 05, 2019 12:58 pm
by karinha
It's hard to understand what you want. Do you compile with both versions? Why not compile only with the version that theoretically you say works and generates ERROR.LOG? You do not show anything practical to test or analyze. So it is not possible to help you. Greetings.

Re: Error report (errsysw_.prg)

PostPosted: Fri Jul 05, 2019 2:33 pm
by hua
I guess what Milos is trying to say is, with ver 15.07 the error occured but no error.log was generated.

With FWH12.08 the error.log was generated.

I'm also interested in this because with latest FWH19.03/05, it's the standard errsysw.prg that is executed not my customized errsysw that I linked in. But then again I may have to check whether I was using hbmk2 or a BCC link script as I just realized with hbmk2 I can't control the order of the objs that gets linked in

Re: Error report (errsysw_.prg)

PostPosted: Fri Jul 05, 2019 3:15 pm
by nageswaragunupudi
TimStone wrote:Several days ago I posted a question on this thread and it disappeared. So I will ask it again.

The suggestion is to NOT use errorsysw.prg. Why ? I took it and modified it to provide very useful information when an error does occur. That is what I link into my application. Using the default would limit the data I can get and that would not be helpful. So, why are you recommending NOT using errorsysw ?


You are at liberty to modify and use your own modified program.
The only limitation is that FWH will not be able to support any questions on your modified program.

It is also possible to customize the present FWH's native errsysw.prg. Please review these options and then decide if these options are adequate for your requirements or you really need to replace it with a customized program.

In any case, the original question is different. We will try to address that.

Re: Error report (errsysw_.prg)

PostPosted: Fri Jul 05, 2019 3:19 pm
by nageswaragunupudi
hua wrote:I guess what Milos is trying to say is, with ver 15.07 the error occured but no error.log was generated.

With FWH12.08 the error.log was generated.

Yes, this is the issue raised.
Wish to have a small test program generating this error and then we can check with both FWH1208 and current version and provide a helpful answer.

Re: Error report (errsysw_.prg)

PostPosted: Fri Jul 05, 2019 6:08 pm
by TimStone
Yes, I realize the original question was different, but I was curious about the "why" of one of your responses.

I do realize that if I modify any source code, it is my responsibility to figure out what is going on if I have a problem. Actually, I'm simply reporting more data that I found would be very helpful in understanding the cause of an error when they ( infrequently ) do occur. In fact, I find most errors today are usually due to some change in WIndows rather than a code error.

I usually work off a very recent copy of errorsysw.prg and then add in the extra data lines I need. Thus, my work adds to what already exists and otherwise modifies nothing.

Thank you.

Re: Error report (errsysw_.prg)

PostPosted: Fri Jul 05, 2019 6:59 pm
by mtajkov
Prg:
Code: Select all  Expand view
#include "FiveWin.ch"

function Main()

* Variable does not exist: MERROR


  msgInfo(mError)


return nil
 


Exe file:

http://www.smartprint.co.rs/test1208.zip
http://www.smartprint.co.rs/test1507.zip
Regards,
Milos

Re: Error report (errsysw_.prg)

PostPosted: Fri Jul 05, 2019 8:29 pm
by nageswaragunupudi
I copied this program to \fwh1507\samples folder as er.prg and built with "buildx.bat"
Code: Select all  Expand view

buildx er
 


This is the error.log I got with native errsysfw.prg:
Code: Select all  Expand view
Application
===========
   Path and name: C:\fwh1507\samples\er.exe (32 bits)
   Size: 3,087,872 bytes
   Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20190613)
   FiveWin  Version: FWHX 15.07
   Windows version: 6.2, Build 9200

   Time from start: 0 hours 0 mins 0 secs
   Error occurred at: 07/06/19, 01:56:38
   Error description: Error BASE/1003  Variable does not exist: MERROR

Stack Calls
===========
   Called from: er.prg => MAIN( 8 )
 


Please try the same steps I mentioned above.

Re: Error report (errsysw_.prg)

PostPosted: Mon Jul 08, 2019 12:50 pm
by karinha
Milos, what version of BCC and xHARBOUR are you using to compile with FWH1705?

Regards.