[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd problem

From: Germán Arias
Subject: Re: Odd problem
Date: Thu, 28 Jul 2011 00:08:25 -0600

On mié, 2011-07-27 at 09:35 +0200, Fred Kiefer wrote:
> Most likely your problem is that the delegate has already been 
> deallocated when this method get called. A simple way to test this is to 
> retain the delegate in the setDelegate: method. Of course this will leak 
> an object and should only be done to test if this is actually the issue.

This solve the problem.

> When you are sure about it, things get complicated :-(
> You will have to find out where the delegate get set and what should 
> keep him alive outside of the CWService and of course, why this 
> mechanism isn't working.
> I don't understand much of Pantomime or GNUMail, but from a short look I 
> think that CWService is a sort of super class of the different 
> connections and TaskManager seems to be the delegate used. You will have 
> to watch, when TaskManager gets deallocated.

I will check this, but I think the problem is with other object. The
object _delegate can change. That is the reason about why need check if
the delegate can respond to the method. 

> Hope this helps
> Fred


reply via email to

[Prev in Thread] Current Thread [Next in Thread]