LocalMasterDetail with no Master + RefreshQuick = AV

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Justmade
Posts: 108
Joined: Sat 16 Aug 2008 03:51

LocalMasterDetail with no Master + RefreshQuick = AV

Post by Justmade » Thu 16 Dec 2010 03:27

If a Dataset is set to LocalMasterDetail and has no Master Sources, it cause a Access Violation when Refresh Quick.

I traced and see that it happen in
DBAccess.TCustomDADataSet.SetMasterParams Line 7309
Assert(DataSource.DataSet is TCustomDADataSet);

The DataSource is nil at that moment that caused the AV.

AndreyZ

Post by AndreyZ » Thu 16 Dec 2010 12:43

Hello,

Thank you for the information. We have reproduced this problem and fixed it. This fix will be included in the next MyDAC build.

Post Reply