Re: Bug in last line of source file

new topic     » goto parent     » topic index » view thread      » older message » newer message

Terry Constant writes:
> The following six lines are the last lines in a main .ex file that
> calls a function in an .e file. As is, they completely crashed
> the program, with a screen full of error information, before it
> would run.

> ErrorFileList = NiceFormProcessFiles(CmdLin, Action)
> if length(ErrorFileList) > 0 then
>        Writeln("ERRORS WITH THE FOLLOWING FILES:")
>        WritelnSp(ErrorFileList, "\n")
>        abort(1)
> end if

> When I add a final line, something like the "--end file"
> comment below, the program works just fine.

I ran your code on my machine (I had to supply dummy declarations
for a few things) and did not see any crash. For me it's ok
with or without the final comment line, and if I remove the
final \r\n on the last line, so the last character in the file is 'f',
it still runs ok.

You say it "completely crashed the program with
a screen full of error messages before it would run".
How could it run after having a screen full of error messages?
What messages did you see? Were they just warnings?
Were you running this under 4DOS using long command lines
(greater than 128 characters)?

Regards,
     Rob Craig
     Rapid Deployment Software

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu