From: Bruce or Tracy Jacobs <bljacobs2@mchsi.com>
Subject: Re: best way to handle long strings!?
Date: Sat, 24 Aug 2002 13:32:14 GMT
Date: 2002-08-24T13:32:14+00:00 [thread overview]
Message-ID: <3D67A8C0.FB045D7E@mchsi.com> (raw)
In-Reply-To: 5ee5b646.0208170257.7418c149@posting.google.com
Just a side note - if you use Booch Unbounded String, you will have to
dimension an initial string. If you need a string that is larger, and
end up having to dimension another sting and copy the original string
to the new string, be sure to deallocate the memory of the original
string.
We ran into problems at work where the original coder forgot to free
the original string when he had to get a longer string allocation,
and we ran out of physical memory.
At lease, the version of unbounded string we use has to be "free'ed".
Bruce
Robert Dewar wrote:
>
> jonas.gasser@dataflow.ch (drmed) wrote in message news:<c923f575.0208150903.5ac6b098@posting.google.com>...
> > hi,
> >
> > for example: for a texteditor or sourceditor is it usefull to use the
> > unbounded strings? and to put all lines in one string? or is there a
> > better method to handle this?
>
> Putting all the data in one long unbounded string is a
> perfectly frightful choice. Almost anything else would
> be better.
next prev parent reply other threads:[~2002-08-24 13:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <c923f575.0208150903.5ac6b098@posting.google.com>
2002-08-16 14:34 ` best way to handle long strings!? Jacob Sparre Andersen
2002-08-18 4:30 ` AG
2002-08-19 0:53 ` Robert Dewar
2002-08-19 8:52 ` AG
2002-08-19 9:28 ` Jacob Sparre Andersen
2002-08-21 8:17 ` AG
2002-08-17 10:57 ` Robert Dewar
2002-08-24 13:32 ` Bruce or Tracy Jacobs [this message]
2002-08-24 21:48 ` Robert Dewar
2002-08-25 17:49 ` Vincent Marciante
2002-08-26 16:36 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox