I have a bit of a problem here. For a custom Edit control, I would
like to use an array of dynamic strings, instead of a memory block
with fixed length lines of strings.
The last one is fairly easy - allocate memory, store handle, unlock,
resize, lock, etc. I guess the current PB editor is built that way,
hence the limit of 256 character per line.
But for array of dynamic strings? Resizing a memory block for each
and every change, then extracting the strings to be shown slows down
everything too much. Even allocating some extra memory to avoid too
much resizing doesn't help, since it's extracting the lines of text
to be shown that makes it a bit too slow for my taste.
So, my question is: Is there a fairly easy way of making an array
of dynamic strings "Global" for one unique instance only ? Is this
where "Threads" comes into the picture? Never had to deal with that
area before, so I know very little about it, but before I start
reading up on it, I thought I'd ask, in case someone knows of a
better and/or easier way of doing it..
------------------
like to use an array of dynamic strings, instead of a memory block
with fixed length lines of strings.
The last one is fairly easy - allocate memory, store handle, unlock,
resize, lock, etc. I guess the current PB editor is built that way,
hence the limit of 256 character per line.
But for array of dynamic strings? Resizing a memory block for each
and every change, then extracting the strings to be shown slows down
everything too much. Even allocating some extra memory to avoid too
much resizing doesn't help, since it's extracting the lines of text
to be shown that makes it a bit too slow for my taste.
So, my question is: Is there a fairly easy way of making an array
of dynamic strings "Global" for one unique instance only ? Is this
where "Threads" comes into the picture? Never had to deal with that
area before, so I know very little about it, but before I start
reading up on it, I thought I'd ask, in case someone knows of a
better and/or easier way of doing it..

------------------
Comment