Hi Sascha,
what I meant was that the code e.g in
QmitkHelloWorldView::~QmitkHelloWorldView() is never reached in any
View class of any bundle
this is particularly important in cases such as:
QmitkIsoSurface::~QmitkIsoSurface()
{
cherry::IPreferences::Pointer prefs = this->GetPreferences();
if(prefs.IsNotNull())
prefs->Put("defaultThreshold",
m_Controls->thresholdLineEdit->text().toStdString());
}
where you would like to keep the bundle's preferences
cheers
sebastian
On Tue, Sep 29, 2009 at 4:44 AM, Zelzer Sascha
<[email protected]> wrote:
> Hi Sebastian,
>
> could you be more specific what you mean with "bundle destroyers"?
>
> It may be possible that instances of the internal cherry::IBundle
> implementation are not deleted due to smart pointer cycles (I have not looked
> into it yet). Nevertheless, if you want to participate in the bundle
> lifecycle, you should write your own cherry::IBundleActivator implementation
> (or subclass cherry::Plugin or cherry::AbstractUIPlugin) and overwrite the
> Start() and Stop() methods.
>
> Let me know if you need more details,
>
> Sascha
>
>
>> -----Ursprüngliche Nachricht-----
>> Von: sebastian ordas [mailto:[email protected]]
>> Gesendet: Donnerstag, 24. September 2009 20:46
>> An: [email protected]
>> Betreff: [mitk-users] bundle destroyers not reached
>>
>> Dear List,
>>
>> I noticed that bundle destroyers are not reached when closing the
>> application. Is that made on purpose?
>> btw, it would be nice to have a File->Exit to exit the application.
>> This
>> is more elegant than closing the application window directly
>>
>> thanks,
>> sebastian
>>
>> -----------------------------------------------------------------------
>> -------
>> Come build with us! The BlackBerry® Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart
>> your
>> developing skills, take BlackBerry mobile applications to market and
>> stay
>> ahead of the curve. Join us from November 9-12, 2009. Register
>> now!
>> http://p.sf.net/sfu/devconf
>> _______________________________________________
>> mitk-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mitk-users
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users