Rudolf
Rudolf

Reputation: 21

Floating point error on connection with monetdbe, from lazarus, but not from Delphi

L.S, I am writing a series of drivers for Lazarus and Delphi, so that MonetDB/e can be used there as well, but i encounter connection problem with Lazarus. I have created an import unit for monetdbe.dll, but when i call the function monetdbe_open i get a "Floating point division by zero" in Lazarus, while when i call the same function in Delphi it succeeds.

Q: What can cause this on the monetdbe side ? What does it need on the zero ?

Source : https://github.com/rudolfterhaar/MonetDBE_Pascal_driver/blob/main/monetdbe.pas

The original c header : https://www.monetdb.org/hg/MonetDB/file/tip/tools/monetdbe/monetdbe.h

Setup : Windows 11, Delphi 12.2, Lazarus 3.6 (FPC 3.2.2) (everything incl dll 64bits)

Upvotes: 1

Views: 125

Answers (0)

Related Questions