Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 29 Mar 2024, 06:32

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 25 Feb 2020, 15:04 
Offline

Joined: 25 Feb 2020, 14:41
Posts: 1
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:
Image

DesignTime Screen:

Image


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


Top
 Profile  
 
PostPosted: 26 Feb 2020, 12:10 
Offline

Joined: 24 Aug 2018, 13:15
Posts: 46
Location: Brazil
rrricci wrote:
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:
Image

DesignTime Screen:

Image


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


Renato, providencia um fonte de exemplo, pois eles vao pedir para simular


Top
 Profile  
 
PostPosted: 26 Feb 2020, 20:30 
Online

Joined: 08 May 2014, 18:06
Posts: 660
Hello

Unfortunately, we do not have Zeos components on our computer.
Check how reliably getting and setting the TzQuery.Bookmark property works.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: EhLibSupport and 21 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group