V4CC - Leaks

Erne ernestogiannotta at tiscalinet.it
Tue Mar 30 04:33:28 CDT 2010


Hi Ruslan,

Il giorno 30-mar-10, alle ore 09:06, Ruslan Zasukhin ha scritto:

> On 3/29/10 11:43 PM, "Thorsten Hohage" <thohage at genericobjects.de>  
> wrote:
>
>> Hi Ernesto,
>>
>> On 2010-03-29, at 22:33, Ernesto Giannotta wrote:
>>
>>> I was exploring my app with the Leaks Tool of Xcode and found lots  
>>> of them,
>>> almost all belonging to Valentina lib.
>> I was through this whole process two times with my framework / app.  
>> Most
>> interesting nailing down many leaks causes - at least for my app -  
>> zombies to
>> came up. Now nailing down the zombies - finding new leaks ... nice  
>> game.
>>
>>
>>> Can you please take a look at it and fix?
>> Which Version are you looking at? Because during last fall Ruslan &  
>> team take
>> care of some issues reported by me.
>>
>>
>> I was able to track down MOST of the Valentina issues and to handle  
>> MOST of it
>> in my code.
>
> Yep. I also doubt exists big troubles in V4CC.
>

So far I can confirm it, it works like a charm!

>
>> It is a little bit to much and to hard to write all the things in
>> this mail. So perhaps you can send some code - of list ???? and  
>> I'll write a
>> nice list of things together what you could change in your code.
>
> Will be interesting to see this TIPs on the list Thorsten :)
>


Here's the big problem, from what I've learned from Thorsten Valentina  
DOES NOT abide by the memory management rules well estabilished for  
the Cocoa environment.

That is (from docs):
You take ownership of an object if you create it using a method whose  
name begins with “alloc” or “new” or contains “copy” (for example,  
alloc, newObject, or mutableCopy), or if you send it a retain message.

If there's no clear rule it's very hard to play nice...

As you know I'm a big fan of Vale, so will take the pain to learn what  
it takes to take good care of her
but if you are eager to lure others into her charms I strongly  
recommend you teach her how to behave ;-)

Meanwhile, could you please give me some guidelines?


Thanks for your kind attention

Cool Runnings,
Erne.






More information about the Valentina mailing list