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
Lazarus Bugfix Release 4...
by
Martin_fr
[
Today
at 11:13:42 pm]
Store directories and fil...
by
jamie
[
Today
at 11:11:54 pm]
Get "serial number" of (r...
by
Bart
[
Today
at 11:05:18 pm]
Help with search and repa...
by
Thausand
[
Today
at 10:55:26 pm]
record fields alignment
by
creaothceann
[
Today
at 10:51:17 pm]
tform does not show color...
by
dsiders
[
Today
at 10:45:21 pm]
Converting bitmaps into a...
by
dergen
[
Today
at 10:42:11 pm]
Run as a different user
by
Warfley
[
Today
at 10:34:50 pm]
SameGame
by
marcov
[
Today
at 09:55:57 pm]
How to change the grid-si...
by
dsiders
[
Today
at 09:40:24 pm]
Free resources for Lazpai...
by
circular
[
Today
at 09:38:20 pm]
Mapping Images Like Odome...
by
circular
[
Today
at 09:36:27 pm]
Porting PDF Viewer from D...
by
domasz
[
Today
at 09:35:22 pm]
Lowercase Drive in LAZ 4....
by
Martin_fr
[
Today
at 08:09:07 pm]
Draw Behind Desktop Icons...
by
atroesch
[
Today
at 07:46:33 pm]
Problem with Qt5 on macOS
by
mischi
[
Today
at 07:44:29 pm]
New Mac mini M4 - FPC 3.2...
by
mischi
[
Today
at 07:30:38 pm]
Cross-platform rich text
by
lelanthran
[
Today
at 07:07:08 pm]
Add new unit to a Lazarus...
by
Lulu
[
Today
at 06:34:27 pm]
[SOLVED - Sort of!] Print...
by
AgriMensor
[
Today
at 06:27:08 pm]
Lazarus broke my project
by
jamie
[
Today
at 05:57:06 pm]
Access Violation
by
1HuntnMan
[
Today
at 04:48:40 pm]
Amigo programming languag...
by
paxscript
[
Today
at 02:35:23 pm]
Some testing the water qu...
by
mdlueck
[
Today
at 02:17:55 pm]
SandTris (Tetris variant)
by
Thaddy
[
Today
at 12:16:27 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: zeoslib av on transaction destruction (Read 794 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