?
Solved

64K limit on rich edit control?

Posted on 1997-05-09
3
Medium Priority
?
475 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 200 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month9 days, 17 hours left to enroll

762 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