Solved

64K limit on rich edit control?

Posted on 1997-05-09
3
460 Views
Last Modified: 2010-04-03
The TRichEdit control allows me to load a big file (600K) and display it fine, but the editing on such a large file doesn't work correctly. In order to type something you have to either delete existing stuff or write over existing text.  Is there a way around this or a fix for it?
I am using Windows '95, and there is no code attached anywhere. You can try it yourself with the Richedit demo in the Demos directory by loading a large file and trying to type in stuff.
0
Comment
Question by:kristoffer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Expert Comment

by:StevenB
ID: 1336075
 I intend this as serious advice, not just a flippent comment:

  If you intend to write a serious application, avoid Delphi's TRichEdit, it is not very good, you will run into problem upon problem, I recomend that you find a better component from somewhere, there's lots of them about.

  Steven.

  (Try :
  http://members.aol.com/jziersch/index.html
  or maybe:
  http://SunSITE.icm.edu.pl/delphi/
  )


0
 

Accepted Solution

by:
kangadru earned 100 total points
ID: 1336076
Depending entirely on your choice of Windows95 or Windows NT 4.0 effects this as well.  Judging from your question, I will assume that you are on Windows95.  Steve is correct in pointing out that the TRichEdit in Delphi is a little buggy.  However it's bugs probably aren't really related to your problem.  You can test this as I did by loading the RichEdit Sample that shipped with Delphi 2.x.  If that one properly loads your file then you problem is something related to your usage of the control, and not the control itself.  Without looking at your code and form, I would tend to suspect your problem lies in how the modifications are being made.  If they are being done programatically, I believe you are running into a problem with the number characters in the control going over the integer definition and the caret position goes negative,if you are using the EM_SETSEL API then you can get around this.  If you are seeing this problem when typing you will probably have either a MAXLENGTH set for the control or you are running out of memory.  Now with all of that said, the Delphi 3 implementation of RichEdit is much more stable and has many improvements.  The Delphi RichEdit control is simply a wrapper around the Win32 Common Control RichEdit that both MFC and Visual Basic use.  While they have certain limitations they are still quite usable.I hope some of this helps you out, I personally avoid the richedit control like the plague for several reasons, however I have written an RTF printer specifically for MAil Merge with files well over 600k using the Win32 RTF control, with only memory being a problem.  When handling files of this size, the RTF control has a nasty habit of crunching large amounts of Physical RAM, and on Windows95 Resources.  Oddly enough Window NT doesn;t appear to suffer from the same problems and works rather well.  I don't know if the Common Controls for the two platforms are that different or if NT's architecture alleviates the problems or not.Andy
0
 

Author Comment

by:kristoffer
ID: 1336077
Edited text of question
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
URL for downloading Google Chrome for Win XP 2 270
select query - oracle 16 103
Drag & Drop... Data from one grid to another 2 51
Broadcast a message using ICS 2 48
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question