06.05.2019 10:48, Massimo Fazzolari wrote:
Hello,

I have an UDF lib compiled with FPC 3.0.4 (Lazarus 2.0.2) that works properly on linux (Ubuntu 18.04 and Firebird 2.5.8.27089) but Firebird crashes on Windows with this error everytime I invoke any of the user defined functions:

*Error writing data to connection*

  What is in firebird.log ?

The same UDF library works properly on Windows and Linux when compiled with FPC 
2.6.4 (Lazarus 1.2.6)

Does anybody have any clue what could cause this issue on Windows?

  How UDF is declared in DB ?
  How UDF is declared in Pascal ?
  How memory for return parameter is allocated ?

Regards,
Vlad

PS there was issues witn wrong exception handler in FPC 2.x on Win64, but i 
believe it was fixed in FPC 3.x


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to