[Lazarus] SQLDB invalid handle

Stephano patspiper at yahoo.com
Tue Mar 17 20:56:21 CET 2009


Bram Kuijvenhoven wrote:
> Thank you. I don't have a Sybase server or even a Sybase ODBC driver here, but after modifying your code to connect to a MySQL server that I have running, I also got an exception (an Access Violation actually).
> 
> However, when I use the SQLDB and ODBConn units from FPCs trunk (rev. 12825), the program no longer crashes. Since some changes were made between 2.2.2 and trunk in the code that allocates and deallocates statement handles, the crash may have been fixed.
> 
> Could you please test with FPCs trunk? (shortcut: copy the .inc/.pp/.pas files to your test program's directory from trunk/packages/fcl-db/src/, subdirs base, dbase, sqldb and sqldb/odbc)
> 
> BTW your test program depends on the LCL, but this is not necessary; you may find it easier to test with a command line program.
> 
I tested with FPC trunk and the problem persists!



More information about the Lazarus mailing list