Intercept OnReconcileError
Posted: 07.10.2009, 11:17
Hi all,
I have on my form the following components:
ClientDataset1, DatasetProvider1, Zquery1, ZConnection1 and they are so linked:
ZQuery1.Connection := ZConnection1;
ClientDataset.ProviderName := DatasetProvider1;
DatasetProvider1.Dataset := ZQuery1;
ZConnection is connected to MySql 4.1.
In reading mode of the ClientDataset everything is ok, I can insert, edit, and post records, when I call the ClientDataset.ApplyUpdates to write my changes on the database, everythings is ok too.
But when more threads simultaneously, edit and post the same records on the ClientDataset, the last thread who calls the method ClientDataset.ApplyUpdates should get the event ClientDataset.OnReconcileError. But this doesn't appen! Why? Can anybody help me?
If I replace Zeos components with DbExpress components this event is raised, why?
P.S. I have delphi 7
I have on my form the following components:
ClientDataset1, DatasetProvider1, Zquery1, ZConnection1 and they are so linked:
ZQuery1.Connection := ZConnection1;
ClientDataset.ProviderName := DatasetProvider1;
DatasetProvider1.Dataset := ZQuery1;
ZConnection is connected to MySql 4.1.
In reading mode of the ClientDataset everything is ok, I can insert, edit, and post records, when I call the ClientDataset.ApplyUpdates to write my changes on the database, everythings is ok too.
But when more threads simultaneously, edit and post the same records on the ClientDataset, the last thread who calls the method ClientDataset.ApplyUpdates should get the event ClientDataset.OnReconcileError. But this doesn't appen! Why? Can anybody help me?
If I replace Zeos components with DbExpress components this event is raised, why?
P.S. I have delphi 7