![]() Procedure TfrmSimpleDataPump.BitBtn2Click(Sender: TObject) Not sure why there's such a big difference in the calling processes between Delphi and Lazarus. I put a breakpoint on the same line in both compilers - in Delphi it gets called 4 times before the window is shown and not at all when closing, however in Lazarus it gets called about 20 times before the form appears and again when closing so I suspect it's calling the FParse.Clear function after already "free-ing" the TStringList object. The exact same code in Delphi 2005 runs fine. If I put all the compiler checks in the code generation in the options it appears that the problem is appearing in the ZSQLStrings unit when trying to free the "FParse" TStringlist (in the RebuildAll procedure). The program runs and provides the information but when closing the application causes a SIGSEV error. Basically at runtime dynamically make a connection to a sql server and run some SQL. I have a similar problem with a very simple window ms-sql server application (uses NTWDBLIB.DLL) and zeos (both 6.6.6 and 7.0.1/7.0.2 fail with it). I then re-installed CT2.4 and got the same error (this uses 6.6.6 by default) so it would be good to know which version of CT you had this working on - the Zeos 6.6.6 has been the stable version for a few years (and is consistent in most versions of CT) so it may be there's a directive or something causing an issue here (ignored or has other meaning in newer versions of FPC?). I tried this (exactly as you described) and there is an issue but it's not limited to Zeos version 7 - with CT2.50 I tried the v6.6.6 and v7.0.2 get the same issue on both. Please Log in or Create an account to join the conversation. Please, help - is it a bug in CT or ZEOS somehow? Anyone has such problems? Moreover - trying to delete such connected ZQuery from form, leads to Access Violation. It does not matter if forms are static or created dynamically (datamodule first). If ZQuery is on the same form with ZConnection - it seems to work. Run the application, and you shall receive "Database connection is not assigned" and then SIGSEGV. Put ZQuery on OTHER TForm, and connect it to ZConnection (assigned to file, driver, sqlite3.dll etc)Īt this stage ZQuery can execute SQL statements, retrieve fields and so on. Create DataForm : TDataModule (or TForm also)Ĥ. The problem seem to happen with ZConnectionĢ. So - unfortunatelly my database apps stopped working. I've got some unusuall problem after update to CT2.50 - and, with that - to ZEOS 7. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |