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
_______________________________________________
evolution-hackers maillist - evolution-hackers lists ximian com
http://lists.ximian.com/mailman/listinfo/evolution-hackers