|
Post by Jo on Apr 4, 2023 14:09:28 GMT -5
I try to open (Edit or Browse) a simple text file and get:
SPFLite V(3.0.23093) @ 2023-04-04 20:12 SPFLite has encountered an execution exception (C0000005)
Last Interactions were: K=ENTER Module Back Trace: 07 ATTRSCAN 06 COPYAFILE 05 INITAFILE 04 FMLCMDPROCESS 03 POSTKEYBOARD 02 MAINDKEYPROCESS 01 MAINCDOKEYSTRING 00 REALPBMAIN
this happens even on L (Lines) linecommand
The first file 'JoTest_Doku.asm' opens normally, other files encounter that execution exception (C0000005). Both .asm & .inc are linked to profile AVRASM I don't see any difference to other text-files, I'm clueless. All other text files (.bat & .cmd both linked to profile DOSBAT) open normally.
Any ideas ??
Jo
|
|
|
Post by Jo on Apr 4, 2023 14:34:46 GMT -5
I'm sorry, finally found the difference:
I recently changed my AVRASM.AUTO file. I replaced all "WORD"-definitions with "AUTOCAPS". Even those for the special charactes defined with DELIMS. When I changed them back to "WORD" the problem disappeared.
Jo
|
|
|
Post by George on Apr 5, 2023 8:27:38 GMT -5
Jo: I tried setting a Delim character to AUTOCAPS, seemed to work OK. Odd.
If you get it again, save the AUTO and test data file for me.
George
|
|
|
Post by Jo on Apr 9, 2023 16:18:09 GMT -5
Problem occurs if the .AUTO file contains AUTOCASE for a special character as in ; SPFLite colorize file Test ; COMMENT1 1 ; 0 DELIMS = AUTOCASE 2 =
even if the Profile contains AUTOCASE OFF. ; test =
Not only on E (Edit) or B(Browse) but also on L(Lines) linecommand
Jo
|
|
|
Post by Robert on Apr 9, 2023 20:34:29 GMT -5
Jo, hopefully you can see the underlying problem. AUTOCASE and AUTOCAPS are intended to alter the spelling of letters. Applying AUTOCASE (or AUTOCAPS) to a token that has no letters is meaningless. Because of that, the AUTOCASE and AUTOCAPS commands in the AUTO file should be rejected with an error if they cannot be applied, but evidently, that is not currently being done. No doubt once a meaningless command was accepted, the logic went downhill from there.
|
|
|
Post by Jo on Apr 10, 2023 3:31:13 GMT -5
Robert, yes, requesting AUTOCASE for a single special character makes no sense and should therefore act as noop. And when the PROFILE says "AUTOCASE OFF" then I think that every "AUTOCASE" and every "AUTOCAPS" in der .Auto file should act as "WORD". And I wonder why the "L" (Lines) request ever needs to read the .Auto file. Maybe the .STATE file contains some more infos ..?
Jo
|
|
|
Post by George on Apr 10, 2023 9:59:22 GMT -5
Jo: Robert: It may be illogical to AUTOCASE a DELIMS character, but it should not have triggered a crash, there's no need to reject the command and fail the loading of the AUTO file.
The error was a simple bug in the colorize scan routine handling AUTOCASE. It will corrected in the next Beta.
As to why LINES reads the AUTO file? It simply calls the standard 'load-the-file' routine, which handles ALL the peculiarities of loading a file (RECFM, EOL, SOURCE, STATE, etc. etc.) and loading any AUTO file is included in that.
George
|
|