Thanks very much.
--
You received this message because you are subscribed to the Google Groups "google-gadgets-for-linux-user" group.
To post to this group, send email to google-gadgets...@googlegroups.com.
To unsubscribe from this group, send email to google-gadgets-for-l...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-gadgets-for-linux-user?hl=en.
But I can't see Finalizecallback called in debug information,in which function some release work must be done.So can you tell me when Finalizecallback be called?
2010/1/7 wenbin wang <wbwan...@gmail.com>:
> Yes. This will be called when the object is prepared for garbage collection,
> but it will not be called during the program running.  It causes the memory
> leak until memory is exhausted.
> If you can tell me when FinalizeCallback called,  I will be very grateful
> about that! Thanks.
>
> 2010/1/7 James Su <jame...@gmail.com>
>>
>> Do you mean extensions/webkit_script_runtime/js_script_context.cc? You may
>> refer to this document for details. In short, this will be called when the
>> object is prepared for garbage collection. Please search on Google if you
>> want to know what is garbage collection and when it will occur.
>> Regards
>> James Su
>>
>> 2010/1/7 wenbin wang <wbwan...@gmail.com>
>>>
>>> FinalizeCallback in js_script_context.cc.\
>>> Thanks.
>>>
>>> 2010/1/7 James Su <jame...@gmail.com>
But when the backed native object is destructed, how the wrapper be telled and destructs itself ?Thanks very much.2010-01-07
wbwang1985发件人: Xianzhu Wang发送时间: 2010-01-07 12:23:07收件人: google-gadgets-for-linux-user抄送:主题: Re: Re: [ggl-user] About object Finalize callback
"SecondHand" is a JS wrapper of a native object (an ImageElementobject). The wrapper is created when it is first accessed, and willhave the same life time as the backed native object. This won't causememory-leak because this is not accumulative.2010/1/7 wenbin wang <wbwan...@gmail.com>:> Yes. This will be called when the object is prepared for garbage collection,> but it will not be called during the program running. It causes the memory> leak until memory is exhausted.> If you can tell me when FinalizeCallback called, I will be very grateful> about that! Thanks.>
2010/1/7 wenbin wang <wbwan...@gmail.com>:
> The map of wrapper is accumulated.
>
> 2010/1/7 wbwang1985 <wbwan...@gmail.com>
>>
>> But when the backed native object is destructed, how the wrapper be telled
>> and destructs itself ?
>> Thanks very much.
>>
>>
>>
>> 2010-01-07
>> ________________________________
>> wbwang1985
>> ________________________________
>> 发件人: Xianzhu Wang
>> 发送时间: 2010-01-07  12:23:07
>> 收件人: google-gadgets-for-linux-user
>> 抄送:
>> 主题: Re: Re: [ggl-user] About object Finalize callback
>> "SecondHand" is a JS wrapper of a native object (an ImageElement
>> object). The wrapper is created when it is first accessed, and will
>> have the same life time as the backed native object. This won't cause
>> memory-leak because this is not accumulative.
>> 2010/1/7 wenbin wang <wbwan...@gmail.com>:
>>
>> > > Yes. This will be called when the object is prepared for garbage collection,
>>
>> > > but it will not be called during the program running.  It causes the memory
>> > leak until memory is exhausted.
>>
>> > > If you can tell me when FinalizeCallback called,  I will be very grateful
>> > about that! Thanks.
>> >
>> > 2010/1/7 James Su <jame...@gmail.com>
>> >>
>>
>> >> >> Do you mean extensions/webkit_script_runtime/js_script_context.cc? You may
>>
>> >> >> refer to this document for details. In short, this will be called when the
>>
>> >> >> object is prepared for garbage collection. Please search on Google if you
>> >> want to know what is garbage collection and when it will occur.
>> >> Regards
>> >> James Su
>> >>
>> >> 2010/1/7 wenbin wang <wbwan...@gmail.com>
>> >>>
>> >>> FinalizeCallback in js_script_context.cc.\
>> >>> Thanks.
>> >>>
>> >>> 2010/1/7 James Su <jame...@gmail.com>
2010/1/7 Xianzhu Wang <phni...@gmail.com>: