Eran Levy Guest
|
Posted: Tue Mar 22, 2005 10:18 am Post subject: Getting "Mismatch in data packet" when using AppendData on T |
|
|
When using AppendData and the data contains more than 5452 records, getting
this error after the 2nd attempt to AppendData.
For example:
Suppose I have 2 client datasets, cds1, cds2, and cds1 has 2 fields, one
string and one int. cds1 is created using CreateDataSet().
//Insert 5452 records to cds1
for (int i=0; i < 5452; ++i)
{
cds1->Insert();
cds1->Fields->Fields[0]->AsString = AnsiString() + "test" +
AnsiString(i);
cds1->Fields->Fields[1]->AsInteger = i;
cds1->Post();
}
...
cds2->AppendData(cds1->Data, true);
//The 1st call will succeed. Any farther call to AppendData fails with the
error I mentioned.
cds2->AppendData(cds1->Data, true); //Exception
If I'm using less then 5452 records, things work fine...
|
|