Sorry, the second one should be

2) The virtual deconstructor does not get called properly.

On Wed, Dec 30, 2009 at 2:37 AM, Huaidong Qiu <[email protected]> wrote:
> I encounter some crash on impr sometime, which looks like some
> BasePrimitive2D derived objects do not properly released, but I am not
> sure about this.
>
> I think maybe below elements should be taken into consideration.
>
> 1) STL container's memory manager does not call the deconstructer , it
> just cashes the allocated memory.
> 2) The virtual deconstructor does called properly.
>
> On Tue, Dec 29, 2009 at 11:22 PM, Armin Le Grand <[email protected]> 
> wrote:
>> Huaidong Qiu schrieb:
>>>
>>> Hi all,
>>>
>>> Why BasePrimitive2D does not have a virtual deconstructor?
>>
>> It will have one after aw078 integration where i optimized some primitive
>> stuff and added a whole bunch of documentation.
>>
>> Will the compiler
>>>
>>> give it one?
>>
>> Yes.
>>
>>>
>>> So many classes derived from it.
>>
>> Is this good or bad from Your POV...?
>>
>>>
>>> Thanks in advance
>>>
>>> -Huai Dong
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to