24.08.2017 15:07, Rudi Feijó rudi.fe...@multidadosti.com.br [firebird-support]
wrote:
> is there any problems if I just declare all UDF's with FREE IT?
Yes, server will have problems trying to free memory that wasn't allocated.
--
WBR, SD.
>You must use ib_util_malloc() to allocate memory in UDF and don't forget
>FREE_IT in declaration to avoid memory leak.
Dimitry, on a similar question, is there any problems if I just declare all
UDF's with FREE IT?
We use dozens of UDF's, but only half of them are declared as FREE IT, and I
24.08.2017 12:00, Nagy Szilveszter nagy_szilvesz...@yahoo.com
[firebird-support] wrote:
> out = (char*)calloc(strlen(str), sizeof(char));
> result = (char*)calloc(j, sizeof(char));
Besides, here and there you forgot about space for terminating null char.
--
WBR, SD.
quot;
<firebird-support@yahoogroups.com>
Para: Firebird-support <firebird-support@yahoogroups.com>
Enviadas: Quinta-feira, 24 de Agosto de 2017 6:41
Assunto: [firebird-support] UDF or/and maybe Charset problem
Hi,
i have an UDF function that runs perfectly on Linux 64 bi
there no a null string?
De: "Nagy Szilveszter nagy_szilvesz...@yahoo.com [firebird-support]"
<firebird-support@yahoogroups.com>
Para: Firebird-support <firebird-support@yahoogroups.com>
Enviadas: Quinta-feira, 24 de Agosto de 2017 6:41
Assunto: [firebird-sup
24.08.2017 11:37, Nagy Szilveszter nagy_szilvesz...@yahoo.com
[firebird-support] wrote:
> result = (char*)calloc(j, sizeof(char));
You must use ib_util_malloc() to allocate memory in UDF and don't forget
FREE_IT in
declaration to avoid memory leak.
--
WBR, SD.
Hi,
i have an UDF function that runs perfectly on Linux 64 bit systems. I wanted to
port it to Windows 32 bit, but i'm having problems there.
The UDF was written in C (not C++), compiled on Linux with gcc, everything
works fine.
I compiled the same C file on Windows with MinGW Developer Studio