Anyone know of a way to use the TRichViewEdit and copy data to the clipboard without the application crashing if the data in the TRichViewEdit is quite large? Windows Notepad can handle copying text within seconds after clicking Edit-Copy, or Ctrl+C, whereas if you have a large amount of data (i've tried just text) in the TRichViewEdit and do Ctrl+C (or use the Copy procedure), the application with the TRichViewEdit crashes.
Ideas?
Copy to clipboard without crash
-
- Site Admin
- Posts: 17522
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Does it really crash? It just may take very long time.
It's because a standard TMemoryStream is used. TMemoryStream is unefficient when writing a large amount of data, because many memory reallocations occur.
In the next update, TRichView will use another stream class, with larger memory delta. Copying will be much faster.
It's because a standard TMemoryStream is used. TMemoryStream is unefficient when writing a large amount of data, because many memory reallocations occur.
In the next update, TRichView will use another stream class, with larger memory delta. Copying will be much faster.
-
- Site Admin
- Posts: 17522
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: