FIXED: RJ TextEd can't handle files containing lines that are 111 spaces or more

Report issues, odd behaviors or submit a detailed bug report.
Post Reply
dustwalker
Posts: 28
Joined: 08 Jun 2011 17:14

FIXED: RJ TextEd can't handle files containing lines that are 111 spaces or more

Post by dustwalker »

Hi,
I used one of the scripts on <https://superuser.com/questions/1603763 ... windows-10>. The script generated a text file, but RJ TextEd gives an error when opening it: "Access violation at address 0000000002CBB77B in module 'rtl280.bpl'. Read of address <...>".

The problem sees to be that RJ TextEd can't manage files containing lines that are more than 108 spaces, plus CR+LF end-of-line. Files containing lines that are 109 or 110 spaces plus CR+LF can be opened by double-click, but not by the history drop-down list. Files containing lines that are more than 110 spaces plus either LF or CR-LF always give error.

I have attached an archive containing two one-line text files that illustrate the situation.

I am using the last version of Windows 11 and of RJ TextEd

Thanks for a great program and best regards
Attachments
spacelines.7z
(228 Bytes) Downloaded 97 times
User avatar
pjj
Posts: 2108
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: RJ TextEd can't handle files containing lines that are 111 spaces or more

Post by pjj »

I can open both files -- from my file manager and from RJ TE's own file explorer -- without any problem.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
dustwalker
Posts: 28
Joined: 08 Jun 2011 17:14

Re: RJ TextEd can't handle files containing lines that are 111 spaces or more

Post by dustwalker »

I am using a proportional font (Lucida Sans, size 12) as main font. And a monospaced font (Consolas,size 12) as alternate font.

If I open the problematic file with the proportional font, everything is fine. I activate or deactivate "word wrap", no problem. I try a different proportional font (Arial, size 12), everything remains OK.

If I open the problematic file with the monospaced font, and no "word wrap", everything is fine. However, if I activate "word wrap", I get the error.

If I try a different monospaced font (Courier New, size 12), I get the same result. No "word wrap", no problem. "Word wrap", error.

My "word wrap" configuration is:
"Wordwrap at legal breakpoints..." no.
"Indent wrapped lines" yes.
"Word wrap at" window edge
"Always set word wrap for new documents" yes
"Turn on wordwrap" yes
"Save wordwrap state" yes.
User avatar
pjj
Posts: 2108
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: RJ TextEd can't handle files containing lines that are 111 spaces or more

Post by pjj »

I have followed your settings, yet still can open both files without any problem. However, this is how it looks (I have resized down my editor's window to show the effect):
wordwrap.png
wordwrap.png (6.91 KiB) Viewed 1197 times
I guess something is off here. I use only monospaced fonts. Btw I can't check "Save wordwrap state", as this option is dimmed.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6575
Joined: 19 Jul 2006 14:29

Re: RJ TextEd can't handle files containing lines that are 111 spaces or more

Post by Rickard Johansson »

Fixed in next version (15.60). Thanks!
Post Reply