I have a problem with saving data to stream with a ClientDataSet.
I put data in the ClientDataSet and try to:
...
var
strmBENU: TMemoryStream;
implementation
...
TForm1.Button1Click(Sender: TObject);
begin
ClientDataSet1.SaveToStream(strmBENU);
end;
...
Clicking Button1, here is what I get:
Access violation at adress 0049CEB2 in module 'Project2.exe'. Reading address 00000000.
What am I doing wrong?