Search found 10 matches

by universe
22.08.2022, 19:12
Forum: ZeosLib 7.3/8.0 Forum
Topic: Column values are lost after exception
Replies: 1
Views: 134

Column values are lost after exception

Hello, I have found another issue in ZeosLib 8.0, after throwing exception all values typed in either dbgrid or dbfields are set null. Image below, two tables with foreign key, after exception the name and val columns are set to null after clicking on dbgrid or dbfield, sometimes the values are stil...
by universe
21.08.2022, 09:42
Forum: ZeosLib 7.3/8.0 Forum
Topic: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh
Replies: 14
Views: 660

Re: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh

Hello,
The "nill" check fixed the issue.
Thanks.
by universe
20.08.2022, 11:05
Forum: ZeosLib 7.3/8.0 Forum
Topic: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh
Replies: 14
Views: 660

Re: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh

Hello, Why? No, just because you didn't reply in time :) From what you discovered, I suspect the buffer is being accessed when it's actually empty because of empty dataset Yes, and even after changing the function I used in my main program (sending statement instead of query), it worked for sometime...
by universe
18.08.2022, 22:17
Forum: ZeosLib 7.3/8.0 Forum
Topic: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh
Replies: 14
Views: 660

Re: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh

universe wrote: 18.08.2022, 21:40 And there is no special thing in there, only that it's a bigger application.
No, there is a difference, (which was working previously with ZeosLib 7.2), that I am sending the query as parameter, after removing it the problem was solved.
Is the issue related to the assign method in ZeosLib 8.0?
by universe
18.08.2022, 21:40
Forum: ZeosLib 7.3/8.0 Forum
Topic: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh
Replies: 14
Views: 660

Re: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh

Hello, Thanks for your reply. I have started a new whole project which contains two ZQueries linked to the same table, in one I insert and delete and the other I refresh in-between, and it works. The problem is related to my project, what is strange the "Access violation" is raised only wh...
by universe
18.08.2022, 07:57
Forum: ZeosLib 7.3/8.0 Forum
Topic: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh
Replies: 14
Views: 660

Re: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh

Hello, I did a small "optimization" ColumnOffset := FColumnOffsets[ColumnIndex{$IFNDEF GENERIC_INDEX} - 1{$ENDIF}] to locate witch array is generating the access violation, as follows, function TZRowAccessor.GetInt(ColumnIndex: Integer; out IsNull: Boolean): Integer; var Data: PPointer; PW...
by universe
17.08.2022, 18:03
Forum: ZeosLib 7.3/8.0 Forum
Topic: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh
Replies: 14
Views: 660

Re: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh

Hello, It seems I made someone upset here :wink: ,
Well this time I get the files from https://sourceforge.net/p/zeoslib/code- ... 0-patches/ marked r7860, no mistake.
But I still have the error.

Meanwhile I am still struggling and trying to resolve the issue.
Thanks for your time.
by universe
16.08.2022, 21:31
Forum: ZeosLib 7.3/8.0 Forum
Topic: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh
Replies: 14
Views: 660

Re: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh

Hello, The bad new I have the replaced all source files by those in https://github.com/frones/ZeosLib/tree/8.0-patches but the problem remains. The good news I have reproduced the issue :) . 1. Open a ZQuery with select * from foo where name = 'test' which must returns data. 2. Delete all data for t...
by universe
16.08.2022, 12:00
Forum: ZeosLib 7.3/8.0 Forum
Topic: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh
Replies: 14
Views: 660

Re: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh

Hello,
The version is packed with Codetyphon 7.7 and is marked 8.0.0 alpha.
I will check repository, ask in CT forum, then report back.
Thank you.
by universe
14.08.2022, 07:16
Forum: ZeosLib 7.3/8.0 Forum
Topic: SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh
Replies: 14
Views: 660

SIGSEGV in TZRowAccessor.GetInt after calling Query.Refresh

Hello All, I am facing a random access violation (program exits silently or after showing "Access violation") after running Query.Refresh What is embarrassing most is that I failed to reproduce it with a minimal program. It occurs in file 'source\dbc\ZDbcCache.pas' at line function TZRowAc...