Using a Rich Edit Component, I found that if the text gets too long, it gets "stuck" and it is impossible to insert or append more.
I first found this with an RTF file consisting mainly of half-line paragraphs which I added bits to daily until I found it "stuck" at about 100k. It recovered when I reduced it to 80k.
To investigate, I made a stripped-down minimum project with only a Rich Edit, Open File Dialog, Save Dialog and clipboard facilities. I found that the maximum size depends on the contents.
I made a big file (104k) in Wordpad & saved it in RTF. It opened complete in Rich Edit, but was "stuck" there. I opened a smaller file (64k), copied it to the clipboard and pasted it to the end, and found only part had been pasted (size 69k) and it was stuck there. Opened a different file (20k) and pasted copies of itself to the end. The third paste was incomplete - it had stuck at 72k.
What is going on here?
I first found this with an RTF file consisting mainly of half-line paragraphs which I added bits to daily until I found it "stuck" at about 100k. It recovered when I reduced it to 80k.
To investigate, I made a stripped-down minimum project with only a Rich Edit, Open File Dialog, Save Dialog and clipboard facilities. I found that the maximum size depends on the contents.
I made a big file (104k) in Wordpad & saved it in RTF. It opened complete in Rich Edit, but was "stuck" there. I opened a smaller file (64k), copied it to the clipboard and pasted it to the end, and found only part had been pasted (size 69k) and it was stuck there. Opened a different file (20k) and pasted copies of itself to the end. The third paste was incomplete - it had stuck at 72k.
What is going on here?