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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
GTK3 still alpha
by
Thaddy
[
Today
at 04:26:17 pm]
DateUtils *Span and *Betw...
by
Чебурашка
[
Today
at 04:24:02 pm]
Mixing LazMapViewer and O...
by
wp
[
Today
at 04:12:31 pm]
Lazarus Release Candidate...
by
cdbc
[
Today
at 03:54:05 pm]
SIMD QuickSort
by
mikerabat
[
Today
at 01:57:44 pm]
Fast Fourier Transform (F...
by
Thaddy
[
Today
at 12:02:39 pm]
[SOLVED] suddenly i have ...
by
CharlyTango
[
Today
at 11:29:56 am]
Problems with Lazaruz 3.8...
by
salvadordf
[
Today
at 11:22:35 am]
"database not open" - IBX...
by
CharlyTango
[
Today
at 11:20:22 am]
Weird error: component no...
by
wp
[
Today
at 10:22:28 am]
Very Slow Online Package ...
by
Marc
[
Today
at 09:52:13 am]
Velthuis.Console.pas - Wo...
by
Thaddy
[
Today
at 08:55:31 am]
No fpc found on a fresh i...
by
Thaddy
[
Today
at 08:30:15 am]
Lazarus is not working
by
Thaddy
[
Today
at 08:18:33 am]
Rest API chunk file downl...
by
daniel_sap
[
Today
at 07:49:00 am]
Peano Fractals: Rainbow t...
by
Boleeman
[
Today
at 07:19:37 am]
Drive a tank around the s...
by
Boleeman
[
Today
at 06:22:40 am]
DuckHunter Game
by
TRon
[
Today
at 04:19:56 am]
Saving a TImage with a tr...
by
EganSolo
[
Today
at 03:05:03 am]
NIL vs. Assign: when to u...
by
440bx
[
Today
at 01:08:36 am]
Lazarus Instalation Error...
by
TRon
[March 24, 2025, 10:19:44 pm]
How to download/compile l...
by
Theo11
[March 24, 2025, 09:33:30 pm]
IDE tabs and spaces, auto...
by
Martin_fr
[March 24, 2025, 09:17:07 pm]
(Solved) Illegal paramete...
by
PascalDragon
[March 24, 2025, 09:03:12 pm]
MOVED: Trunk 3.3.1 access...
by
PascalDragon
[March 24, 2025, 08:58:18 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: zeoslib av on transaction destruction (Read 427 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
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
zeoslib av on transaction destruction
TinyPortal
© 2005-2018