BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting "Mismatch in data packet" when using AppendData on T

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Eran Levy
Guest





PostPosted: Tue Mar 22, 2005 10:18 am    Post subject: Getting "Mismatch in data packet" when using AppendData on T Reply with quote



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...



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.