Help with TStream and Run-time Error 210
I am having trouble using streams. I need to store
the contents of a memo field in memory for a while.
Unfortunately, I get a Run-time error 210 when
I execute my code. This error is useless to me, because
I can't find any help for run-time errors in the
online help facilities. The following code is just
to demonstrate the error. But if there is a better way
to store memo fields in memory dynamically, I'd love to
hear it.
To duplicate the error:
add 2 memo fields to a form. On a button_click, try the
following code:
var
stream : TStream;
begin
stream := TStream.create;
memo1.lines.savetostream(stream);
memo2.lines.loadfromstream(stream);
stream.free;
end;
Thanks in advance for any help,
Eric J. Lannert
Northwestern University, Evanston, IL. USA
lann...@ils.nwu.edu