Page 1 of 1

Error 9998

Posted: Fri Jun 25, 2010 12:37 pm
by Mikhail
Error 9998 is not listed.

Does anyone know what it means?

I get it when I try to do a REPLACE

Posted: Fri Jun 25, 2010 12:58 pm
by Gabriel
Any replace? Or is it just with one specific program?

Can you save the same program and not get the error?

Gabriel

Posted: Fri Jun 25, 2010 1:07 pm
by Mikhail
Only this program

Posted: Fri Jun 25, 2010 1:20 pm
by John
My guess is a problem with your if/end if statements and def/fnend statements...

Is there a way to move this thread to the "Error Codes" section of the forum?

of course it could be any number of things... Are you using an external editor?

Posted: Fri Jun 25, 2010 1:35 pm
by Mikhail
Not using an external editor.

This program works, but if I try even just adding a comment, it bombs with error 9998

Posted: Fri Jun 25, 2010 1:40 pm
by John
how many lines long is your program? perhaps it's at a maximum size. Might that be a feasible conclusion?

did you try saving it as source, clearing memory and reloading and replacing it? you probably already did this "wash" but if not ...

what version of BR!? Option 60 in play?

Posted: Fri Jun 25, 2010 2:15 pm
by John
"32,000 is the maximum number of lines a program may contain."
(http://brwiki.ads.net/index.php?title=32%2C000)

I wonder if this is meant as clauses rather than lines... at any rate we have a library with 16277 lines... without a doubt a lot more clauses... though maybe not 32,000.

I don't imagine you're anywhere close to that. Are you?

Posted: Fri Jun 25, 2010 2:35 pm
by Mikhail
Seems to be a size issue

Posted: Fri Jun 25, 2010 2:37 pm
by Mikhail
It's a little over 8000 lines, using BR version 4.02F

Posted: Fri Jun 25, 2010 2:37 pm
by Mikhail
I'm sorry, BR4.03K

Posted: Fri Jun 25, 2010 3:06 pm
by Susan Smith
Mikhail,

Just for the heck of it, try compiling it in 4.20 (without the option that saves in 4.18 format). It seems to me (could be wrong) but 9998 MIGHT be the error I was getting when one of my form statements got too big to compile. When I went to 4.20, the problem disappeared because compiled line lengths can be pretty much unlimited in 4.20.

That's just a guess though. I didn't keep a record of the error when it happened.

I have also gotten strange error codes on occasion when I have mismatched If/THEN/ELSE or for/next statements.

-- Susan

Posted: Fri Jun 25, 2010 3:14 pm
by Gabriel
Are you able to save the file by using the "Save" command and specifying a new file name? Is it just Replace that fails or is it all saves?

Does the file get written to the disk? Or does the error prevent the file from being written to the disk?

Some errors (such as Line Reference Not Found) are just warnings - the file is still saved but the error code is generated. Can you tell by loading the file if the file is saved or not?

Gabriel