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
duplicate an Object at ru...
by
jamie
[
Today
at 03:44:29 am]
Can /my/ AI help me with ...
by
schuler
[
Today
at 03:08:23 am]
Anubis activated
by
dsiders
[
Today
at 01:36:11 am]
wildcard utilities list
by
mas steindorff
[May 17, 2026, 11:01:19 pm]
TLazSerial : serial port ...
by
mas steindorff
[May 17, 2026, 10:50:34 pm]
StringGrid: which is "cur...
by
Bart
[May 17, 2026, 10:41:30 pm]
PopupMenu on dock menu
by
systemgvp
[May 17, 2026, 08:32:50 pm]
How to wait until a WebDA...
by
paweld
[May 17, 2026, 08:16:51 pm]
[SOLVED] Dark Theme
by
Hansvb
[May 17, 2026, 07:29:22 pm]
Bug with constref?
by
LemonParty
[May 17, 2026, 07:15:45 pm]
When will lazarus actuall...
by
marcov
[May 17, 2026, 05:52:04 pm]
FPC Unleashed (inline var...
by
Okoba
[May 17, 2026, 03:49:31 pm]
Can I enter MySQL prompt ...
by
nikel
[May 17, 2026, 03:41:56 pm]
is this code correct?
by
Thaddy
[May 17, 2026, 03:23:29 pm]
Anubis's website security...
by
ALLIGATOR
[May 17, 2026, 02:45:52 pm]
Pure Pascal LZ4, LZ5 and ...
by
LemonParty
[May 17, 2026, 01:38:07 pm]
Linking a PortAudio stati...
by
Thaddy
[May 17, 2026, 10:52:31 am]
TShellTreeView TopItem
by
Paolo
[May 17, 2026, 10:07:58 am]
Temp file CGI00000.TMP
by
Thaddy
[May 17, 2026, 09:32:16 am]
Nothing but chaotic attem...
by
LeP
[May 17, 2026, 09:02:05 am]
Feature suggestion - repe...
by
paweld
[May 17, 2026, 07:38:10 am]
search via TSQLQuery
by
paweld
[May 17, 2026, 07:28:41 am]
Amigo programming languag...
by
paxscript
[May 17, 2026, 05:49:02 am]
Klondike solitaire Part 2
by
valdir.marcos
[May 17, 2026, 03:50:07 am]
Creation of LAMW [NoGUI] ...
by
neuro
[May 17, 2026, 01:06:41 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: zeoslib av on transaction destruction (Read 1096 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: 33
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: 33
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