Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Midas/TDataSetProvider    [ Add a report in this area ]  
Report #:  17998   Status: Closed
(Pulled) A mismatch in datapacket error can occur if using the  ApplyUpdates method of TCustomProvider (the overloaded version  that does
Project:  Delphi Build #:  5.0.5.62
Version:    5.0 Submitted By:   John Kaster
Report Type:  Basic functionality failure Date Reported:  9/29/1999 12:00:00 AM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   72031
Resolution: Fixed (Resolution Comments) Resolved in Build: : 10.0.2098.14501
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
A mismatch in datapacket error can occur if using the  ApplyUpdates method of TCustomProvider (the overloaded version  that does not have the OwnerData parameter.
Steps to Reproduce:
Review the code in TCustomProvider.ApplyUpdates.
Note the first one (with no OwnerData parameter) does not assign the Result variable.
Workarounds
Call the version of ApplyUpdates that has the OwnerData parameter instead.
or
Replace this method in Provider.pas:

function TCustomProvider.ApplyUpdates(Const Delta: OleVariant; MaxErrors: Integer;
  out ErrorCount: Integer): OleVariant;
var
  OwnerData: OleVariant;
begin
  Result := ApplyUpdates(Delta, MaxErrors, ErrorCount, OwnerData);
end;

Attachment
N
Comments

None

Server Response from: ETNACODE01