this patch fix error on destroy any zeos components.
It's fix mistake - use destroyed fields.
[patch done] fix destroy forTZSQLStrings in latest FPC 2.7
Moderators: gto, EgonHugeist, olehs
[patch done] fix destroy forTZSQLStrings in latest FPC 2.7
You do not have the required permissions to view the files attached to this post.
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Commit your free and nil-changes to my private branch. alexs, the FPC-Versioncheck should be done in ZeosLazarus.inc..
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
where string
in commit ?
because
Code: Select all
if not (Assigned(FParams) and Assigned(FStatements)) then exit;
because
http://freepascal.ru/forum/viewtopic.ph ... 3#postformОшибка:
в файле ZSQLStrings.pas в строке 361
FParams.Clear;
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Ism, i need a better documentation.. Where are the lines? For what is the pach? In which file? Can't read the cyrlic Characters of the fpc.ru forum..
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
in first message patch alexs see string
in testing-egonhugeist rev 1034
not found string
Code: Select all
+ if not (Assigned(FParams) and Assigned(FStatements)) then exit;
Code: Select all
Index: src/component/ZSqlStrings.pas
===================================================================
--- src/component/ZSqlStrings.pas (revision 887)
+++ src/component/ZSqlStrings.pas (working copy)
@@ -197,8 +197,8 @@
}
destructor TZSQLStrings.Destroy;
begin
- FParams.Free;
- FStatements.Free;
+ FreeAndNil(FParams);
+ FreeAndNil(FStatements);
inherited Destroy;
end;
@@ -357,6 +357,8 @@
end;
begin
+ if not (Assigned(FParams) and Assigned(FStatements)) then exit;
+
FParams.Clear;
FStatements.Clear;
SQL := '';
Code: Select all
Index: ZSqlStrings.pas
===================================================================
--- ZSqlStrings.pas (revision 1033)
+++ ZSqlStrings.pas (revision 1034)
@@ -198,8 +198,8 @@
}
destructor TZSQLStrings.Destroy;
begin
- FParams.Free;
- FStatements.Free;
+ FreeAndNil(FParams);//.Free;
+ FreeAndNil(FStatements);//.Free;
inherited Destroy;
end;
not found string
Code: Select all
@@ -357,6 +357,8 @@
end;
begin
+ if not (Assigned(FParams) and Assigned(FStatements)) then exit;
+
FParams.Clear;
FStatements.Clear;
SQL := '';
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Alexs ZSQLStrings.pas Patch done in testing and testing-egonhugeist rev. 1038 Your other thread is solved too...
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/