Hello, Iam new with EhLib components and trying to use RowDetailPanel but getting a AV error.
I have a TDataset linked to Zeos TzQuery and a TDbGridEh linked to a dataset.
I havel also another Tdataset wich is a detail of tdataset above.
The DbGridEh is linked to Master Dataset and the DetailPanel Grid's is linked to a DetailDataset.
What happens is: When I expand the row to see the detail, it works good.. However, when I click againg to contract/hide detailrow, it came with a Access Violation..
Please see image:DesignTime Screen:What I did not understand is why sometimes it works and sometimes it gives a Access Violation. Looks like it is loosing the record pointer..
Follow full stack:
Quote:
Classe: EAccessViolation
Mensagem: Access violation
Versão: 2.7.7.103
Hora: 25/02/2020 11:50:23
Processo ID: 6312
Thread ID: 9088
1: 00781200 in GETBOOKMARKFLAG C:/lazarus-206/config/onlinepackagemanager/packages/zeosdbo/src/component/ZAbstractRODataset.pas(4135)
2: 006B2386 in (13365)
3: 00DF69E3 in MOUSEDOWN DBGridsEh.pas(14315)
4: 005C769A in (13365)
5: 005C7C76 in (13365)
6: 00E6B946 in WMLBUTTONDOWN GridsEh.pas(6494)
7: 00E19B5D in WMLBUTTONDOWN DBGridsEh.pas(23747)
8: 0040F5F8 in (13365)
9: 005BD321 in (13365)
10: 00E6C985 in WNDPROC GridsEh.pas(6763)
11: 00ED7C05 in WNDPROC DBAxisGridsEh.pas(11918)
12: 00E1B1E8 in WNDPROC DBGridsEh.pas(24146)
13: 006615AF in (13365)
14: 005A3F2D in (13365)
15: 005A45FB in (13365)
16: 75A6438B in smallorderedseteditor.pas(0)
17: 75A44F8C in smallorderedseteditor.pas(0)
Using: Lazarus 2.0.6 x32 on Windows10 x64
Ehlib VCL Version: 9.5
Any idea?
Thanks,
Renato