- If implemented IDisposable interface, finalizer only call Dispose(false)
Change-Id: I849eaafa65c519834994f9418d1b31c71e46f77a
~ApplicationManagerImpl()
{
- Log.Debug(LogTag, "~ApplicationManagerImpl()");
- UnRegisterApplicationChangedEvent();
Dispose(false);
}
// Free managed objects.
}
//Free unmanaged objects
+ UnRegisterApplicationChangedEvent();
_disposed = true;
}
~MessagePort()
{
- if (_listening)
- {
- StopListening();
- }
Dispose(false);
}
{
if (_listening)
{
- StopListening();
+ try
+ {
+ StopListening();
+ } catch (Exception e)
+ {
+ Tizen.Log.Warn(GetType().Namespace, "Exception in Dispose :" + e.Message);
+ }
}
}