Quantcast
Channel: VFPX
Viewing all articles
Browse latest Browse all 3798

Commented Unassigned: FoxBin2Prg PRG2BIN does not return error codes [43100]

$
0
0
Hello,

I'm using the latest version FoxBin2Prg v1.19.42.
When using the convertion from text to binary file (prg2bin) with an external command, errors are not returned properly to the calling command.

You can reproduce the error by downloading the attached file "_errorreport.zip", unpacking it and running the batch script runfoxbin2prg.cmd.

The third test (subdirectory test3) tries to compile the text version of a simple form and fails.
Comments: ** Comment from web user: ralfxwagner **

Hi Fernando,

not an explanation, but an observation:

Even on the pcs where test #3 fails, test #4 with the simulated error (SIMERR_I1) works.
After comparing the two cases, the difference lies in the fact, that in for SIMERR_I1
ERROR 'InputFile Error Simulation'
is executed, while for the real error

IF .l_Error
.writeLog( '*** ERRORS found - Generation Cancelled' )
EXIT
ENDIF

is executed. When I add something like

IF .l_Error
.writeLog( '*** ERRORS found - Generation Cancelled' )
ERROR "real error 2"
EXIT
ENDIF

then for test #3 a proper error status is returned.

I've attached the modified foxbinprg.prg (based on 1.19.43), just look for "real error". I've only modified the conversions for sc2 -> scx and vc2 -> vcx so far.

A wild guess: When setting SCREEN=OFF, some initialization is missing for the pcs that fail to report the error. Displaying the error message and/or showing the log file in notepad performs the missing steps so that the error is returned properly.

Regards Ralf


Viewing all articles
Browse latest Browse all 3798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>