Subject | Re: [firebird-support] UDF to provide Hexadecimal string |
---|---|
Author | Jason Dodson |
Post date | 2005-08-04T16:42:31Z |
Also, the double allocation was to be a pick and choose. You should pick
one (not both):
Jason
Jason Dodson wrote:
one (not both):
>>> HexNumber = malloc(10); //For C peopleSorry if that was the confusion.
>>> HexNumber = new char[10]; //For C++ people
Jason
Jason Dodson wrote:
> Is that not what the FREE_IT is for in the external function declaration?
>
> Jason
>
> Ann W. Harrison wrote:
>
>>Jason Dodson wrote:
>>
>>
>>>char *IntToHex(long DecNumber)
>>>{
>>> char *HexNumber[10] = NULL;
>>> // 2^32 == 100000000 in hex
>>> HexNumber = malloc(10); //For C people
>>> HexNumber = new char[10]; //For C++ people
>>
>>....
>>Unh, maybe I haven't had enough sleep, but that looks like an memory
>>leak to me. How do you possibly release those bytes?
>>
>>
>>Regards,
>>
>>
>>Ann
>>
>>
>>
>>
>>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>>
>>Visit http://firebird.sourceforge.net and click the Resources item
>>on the main (top) menu. Try Knowledgebase and FAQ links !
>>
>>Also search the knowledgebases at http://www.ibphoenix.com
>>
>>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>>
>>Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Visit http://firebird.sourceforge.net and click the Resources item
> on the main (top) menu. Try Knowledgebase and FAQ links !
>
> Also search the knowledgebases at http://www.ibphoenix.com
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>