(Posted to Firebird-dev list, copied to freepascal list for info)
Hi all,
Recently I mentioned a problem running FreePascal 64 bit code with Firebird 2.5 embedded 64 bit on Windows (Vista).
Tried a later 2.5.1 snapshot, didn't work either.
It does work with a separate regular Firebird 2.x 64 bit server. It also works as a 32 bit program with Firebird 2.5 embedded 32 bit Windows.
Thanks to Firebird's Vlad Khorsun, Martin Schreiber and FreePascal's Marco van de Voort, FreePascal has implemented a patch that got rid of one error.
However, my test program still does not run correctly. It tries deliberately running SQL that will fail, e.g. inserting data in a non-existing table, inserting duplicate values in a column with unique constraints, triggering a... trigger that raises a custom Firebird exception.
All these cases seem to lead to access violations (or other errors) in the Firebird code.
As my debugging skills are weak at best, could a kind soul extract the zip (includes all dlls and database) in
https://bitbucket-assetroot.s3.amazonaws.com/jb/flocate/20101220/6/fbembedtest64_20December.zip run fbservertest.exe using a debugger, generally work your spells and tell me if I should go back to the FreePascal team or if this error seems to be in Firebird itself (or my test code).
For comparison, a comparable exe/source code in 32 bit windows can be found here:
https://bitbucket-assetroot.s3.amazonaws.com/jb/flocate/20100616/5/fbembedtest16June_15.10.zip
FreePascal bug report: http://mantis.freepascal.org/view.php?id=17360 Sample program run for 32 bit and 64 bit: see below:
If you need additional info, please let me know.
Finally, could someone tell me how I can run Windows x64 embedded using the 3.0 snapshots? Simply renaming fbclient.dll to fbembedded.dll didn't seem to work...
Thanks,
