Re: [firebird-support] UDF or/and maybe Charset problem

2017-08-24 Thread Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
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.

RE: [firebird-support] UDF or/and maybe Charset problem

2017-08-24 Thread Rudi Feijó rudi.fe...@multidadosti.com.br [firebird-support]
>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

Re: [firebird-support] UDF or/and maybe Charset problem

2017-08-24 Thread Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
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.

Re: [firebird-support] UDF or/and maybe Charset problem

2017-08-24 Thread Nagy Szilveszter nagy_szilvesz...@yahoo.com [firebird-support]
No, it has value of TRX12270 On Thursday, August 24, 2017, 12:56:09 PM GMT+3, Antônio Gomes acgomes2...@yahoo.com.br [firebird-support] wrote:   there no a null string? De: "Nagy Szilveszter nagy_szilvesz...@yahoo.com [firebird-support]"

Re: [firebird-support] UDF or/and maybe Charset problem

2017-08-24 Thread Antônio Gomes acgomes2...@yahoo.com.br [firebird-support]
there no a null string? De: "Nagy Szilveszter nagy_szilvesz...@yahoo.com [firebird-support]" Para: Firebird-support Enviadas: Quinta-feira, 24 de Agosto de 2017 6:41 Assunto: [firebird-support] UDF or/and maybe

Re: [firebird-support] UDF or/and maybe Charset problem

2017-08-24 Thread Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
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.