Miguel,
If you encounter any memory leak then it should be very easy to show
a sample. Please, post any prg sample that shows such leak.
Ron
On Jun 17, 2008, at 12:24 AM, Miguel Angel Marchuet wrote:
> I implement real hb_retc_buffer() that always free memory.
>
> #undef hb_retc_buffer
> HB_EXPORT void hb_retc_buffer( char * szText )
> {
> HB_TRACE(HB_TR_DEBUG, ("hb_retc_buffer(%s)", szText));
>
> hb_itemPutCPtr( hb_stackReturnItem(), szText, strlen( szText ) );
> }
>
>
> hb_retcAdopt don't free memory in some cases,
>
> I've the changed coded running without memory leaks now.
>
> Ron Pinkas escribió:
>> Miguel,
>> hb_retcAdopt() can not be responsible for any memory leak, and
>> there's no need to make any such change because hb_retc_buffer()
>> is only a macro which in turn uses hb_retcAdopt() . IAE, it's very
>> frustrating trying to understand your issue without a sample.
>> Please post a sample so we can review.
>> Ron
>> On Jun 16, 2008, at 2:15 PM, Miguel Angel Marchuet wrote:
>>> I found that in some situations the use of
>>>
>>> hb_retcAdopt
>>>
>>> generate memory leaks
>>>
>>> I'm changing it with
>>>
>>> hb_retc_buffer
>>>
>>> in some places.
>>>
>>> Any consideration ?
>>>
>>> Best regards,
>>> Miguel Angel Marchuet
>>>
>>> --------------------------------------------------------------------
>>> -----
>>> Check out the new SourceForge.net Marketplace.
>>> It's the best place to buy or sell services for
>>> just about anything Open Source.
>>> http://sourceforge.net/services/buy/index.php
>>> _______________________________________________
>>> xHarbour-developers mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/xharbour-developers
>>>
>
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
xHarbour-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xharbour-developers