Re: [Evolution-hackers] A question about calendar backend
- From: Rodrigo Moya <rodrigo ximian com>
- To: Harry Lu <harry lu sun com>
- Cc: Evolution Hackers <evolution-hackers ximian com>
- Subject: Re: [Evolution-hackers] A question about calendar backend
- Date: Fri, 19 Sep 2003 11:58:09 +0200
On Fri, 2003-09-19 at 06:43, Harry Lu wrote:
> Hi, Calendar developers,
> I met a problem when fixing some bugs in the hydrogen project. I
> found when I remove a calendar folder, the coresponding view and backend
> is not destroyed. A problem of this is : if I create a folder with the
> same name later, it will show the calendar of the old folder. Another
> related problem is: when I remove a account and create an account with
> the same name later, it still uses the old backend instead of creating a
> new backend. I think this also cause some memory leaks here.
> How can I fix this problem in 1.4.x? How can I told the backend to
> be destroyed?
>
there is no way in 1.4.x to tell the backend it's been removed. There is
in HEAD though. To fix it in 1.4.x, you might have to clean up the
cached queries, in calendar/pcs/query-backend.c, although I guess it's
quite difficult, since there is no way to detect when the backend has
been removed. If you want to have a look to see if there's an easy way
to do it, but I did look at it, and that's one of the reasons we added
the "remove_calendar" stuff in HEAD :-)
There is even a bug about it:
http://bugzilla.ximian.com/show_bug.cgi?id=31993
cheers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]