Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Databases
»
zeoslib av on transaction destruction
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
New Mac mini M4 - FPC 3.2...
by
derden
[
Today
at 04:26:31 pm]
How to hide IEEE754 limit...
by
wp
[
Today
at 03:55:45 pm]
Lowercase Drive in LAZ 4....
by
Martin_fr
[
Today
at 03:32:28 pm]
Some testing the water qu...
by
mdlueck
[
Today
at 03:19:39 pm]
Demo #3 of my "home grown...
by
TBMan
[
Today
at 03:05:57 pm]
Add new unit to a Lazarus...
by
Lulu
[
Today
at 02:58:02 pm]
Seems like good timing to...
by
mdlueck
[
Today
at 02:17:23 pm]
Lazarus Bugfix Release 4...
by
jwdietrich
[
Today
at 01:54:34 pm]
synedit
by
Martin_fr
[
Today
at 01:49:12 pm]
[SOLVED] How to update 'F...
by
Hartmut
[
Today
at 01:33:36 pm]
Porting PDF Viewer from D...
by
Boleeman
[
Today
at 12:38:46 pm]
Form scaling aspect ratio
by
Pe3s
[
Today
at 10:32:26 am]
This worries me about our...
by
zeljko
[
Today
at 09:25:47 am]
Help with search and repa...
by
avk
[
Today
at 07:09:59 am]
Variable "xyz" doesn't no...
by
Mr.Madguy
[
Today
at 06:22:15 am]
Problem Installing CHM He...
by
Curt Carpenter
[
Today
at 03:03:11 am]
EditorMacroScript did not...
by
jamie
[
Today
at 02:55:41 am]
Mapping Images Like Odome...
by
SandyG
[November 14, 2025, 11:53:01 pm]
Programmatic filtering in...
by
jamie
[November 14, 2025, 11:27:29 pm]
Problem with Qt5 on macOS
by
zeljko
[November 14, 2025, 10:39:24 pm]
Incompatible type in MTPr...
by
LemonParty
[November 14, 2025, 06:36:59 pm]
In fpcsrc, many places ca...
by
AlexTP
[November 14, 2025, 06:15:35 pm]
Postgres, ZEOS and Visual...
by
wp
[November 14, 2025, 05:57:25 pm]
[Solved] Process exited w...
by
d7_2_laz
[November 14, 2025, 05:14:08 pm]
AVRPascal – free code edi...
by
ackarwow
[November 14, 2025, 04:21:44 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: zeoslib av on transaction destruction (Read 793 times)
jksmithiii
New Member
Posts: 11
zeoslib av on transaction destruction
«
on:
February 05, 2025, 04:32:23 am »
I've read somewhere this bug was fixed in in ver 8 patch. I've applied patch and still get it. Anybody seen this?
procedure TZAbstractTransaction.BeforeDestruction;
var I: Integer;
Comp: TComponent;
begin
for i := FLinkedComponents.Count -1 downto 0 do begin
Comp := TComponent(FLinkedComponents
);
av --> if Comp.InheritsFrom(TZAbstractRWTxnSeqDataSet) then
if TZProtectedAbstractRWTxnSeqDataSet(Comp).UpdateTransaction = Self then
TZProtectedAbstractRWTxnSeqDataSet(Comp).UpdateTransaction := nil;
if Comp.InheritsFrom(TZAbstractRODataset) then
if TZProtectedAbstractRODataset(Comp).Transaction = Self then
TZProtectedAbstractRODataset(Comp).Transaction := nil;
if Comp.InheritsFrom(TZSQLProcessor) then
{if TZSQLProcessor(Comp).Transaction = Self then
TZSQLProcessor(Comp).Transaction := nil;}
end;
FreeAndNil(FParams);
FreeAndNil(FLinkedComponents);
ReleaseInternalTransaction;
if Connection <> nil then
SetConnection(nil);
inherited BeforeDestruction;
end;
Logged
jksmithiii
New Member
Posts: 11
Re: zeoslib av on transaction destruction
«
Reply #1 on:
February 09, 2025, 07:07:16 pm »
I need to do some memchecks on this, but prior to destruction, better to manually make sure references to linked components are set to nil before allowing the stock zeos code do it.
Logged
rnervi
New Member
Posts: 32
Re: zeoslib av on transaction destruction
«
Reply #2 on:
October 04, 2025, 02:43:20 pm »
hu in effect I'am experiencing same trouble. when closing sounds like the
Comp is not assingned but Ive tried with
Code: Pascal
[Select]
[+]
[-]
if
Assigned
(
comp
)
but no luck
I'm investigating on it
Logged
rnervi
New Member
Posts: 32
Re: zeoslib av on transaction destruction
«
Reply #3 on:
October 04, 2025, 02:48:43 pm »
solved (I hope !) with
Code: Pascal
[Select]
[+]
[-]
if
(
comp
.
Name
<>
''
)
then
begin
IF
COMP
.
InheritsFrom
(
TZAbstractRWTxnSeqDataSet
)
THEN
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
zeoslib av on transaction destruction
TinyPortal
© 2005-2018