[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 219105] KDevelop crashed at quit
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2010-01-13 18:53:23
Message-ID: 20100113185323.AED482F534 () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=219105





--- Comment #12 from Andreas Pakulat <apaku gmx de>  2010-01-13 19:53:17 ---
I don't see how refcounting IProject would help here.(In reply to comment #11)
> Imo not only the lang controller would need to keep track, any controller would
> have to do that...

Any controller that keeps a private list of pointers to plugins, yes. But that
is by design, they're actually not supposed to do so or live with the fact that
plugins can be removed behind their back and work with that.

> Probably the best would be to refcount the IProject, that
> should solve this magically, no? Could we not simply use QSharedPointer for
> that purpose? You know, I'm still learning these things :)

I don't see how refcounting IProject would help here. The only thing that could
help would be to use QWeakPointer in the language controller's list and then
check any object fetched from that list before accessing it.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic