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
Error: Enumeration symbol...
by
daniel_sap
[
Today
at 01:53:33 pm]
Need help with Runcommand...
by
marcov
[
Today
at 12:46:25 pm]
Military Grade Directives
by
Thaddy
[
Today
at 11:46:44 am]
Cannot find Online Packag...
by
Thaddy
[
Today
at 11:37:58 am]
MVP made easier.
by
cdbc
[
Today
at 10:54:32 am]
Anyone interested in help...
by
ad1mt
[
Today
at 08:56:20 am]
Hashing pointers by using...
by
440bx
[
Today
at 03:16:33 am]
exception external SIGSEG...
by
dseligo
[
Today
at 02:24:28 am]
Why does the call via fun...
by
Martin_fr
[
Today
at 01:59:35 am]
[SOLVED] Is this a compil...
by
jamie
[
Today
at 01:46:54 am]
Problem installing LazPro...
by
peter.dell
[
Today
at 01:32:53 am]
AI interactions
by
Joanna
[December 13, 2025, 11:47:24 pm]
project - count source li...
by
bobonwhidbey
[December 13, 2025, 10:30:31 pm]
Recomendations for conver...
by
BlueIcaro
[December 13, 2025, 09:49:20 pm]
FPC 3.2.4-rc1 available
by
PeterBB
[December 13, 2025, 08:31:32 pm]
fpsockets error: 10047
by
parcel
[December 13, 2025, 04:03:56 pm]
So many "newbies"
by
Joanna
[December 13, 2025, 02:52:06 pm]
Is it possible to run "mo...
by
Thausand
[December 13, 2025, 02:42:56 pm]
TIBDataSet "Closing"? on ...
by
RedOctober
[December 13, 2025, 02:38:05 pm]
TLazSerial : serial port ...
by
CM630
[December 13, 2025, 02:20:24 pm]
connecting to mariadb
by
alanyoung
[December 13, 2025, 01:27:11 pm]
How to get the standard m...
by
stem
[December 13, 2025, 12:50:55 pm]
Lookup field: error list ...
by
BlueIcaro
[December 13, 2025, 12:00:10 pm]
Anchoring controls with d...
by
jamie
[December 13, 2025, 11:22:45 am]
Recompiled IDE with LCLRe...
by
AlexTP
[December 13, 2025, 05:09:56 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: zeoslib av on transaction destruction (Read 835 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