/// <since_tizen> 3 </since_tizen>
protected override void Dispose(DisposeTypes type)
{
- if (_animationFinishedEventCallback != null)
+ if (this != null)
{
- FinishedSignal().Disconnect(_finishedCallbackOfNative);
- }
+ if (_animationFinishedEventCallback != null)
+ {
+ FinishedSignal().Disconnect(_finishedCallbackOfNative);
+ }
- if (_animationProgressReachedEventCallback != null)
- {
+ if (_animationProgressReachedEventCallback != null)
+ {
- ProgressReachedSignal().Disconnect(_animationProgressReachedEventCallback);
+ ProgressReachedSignal().Disconnect(_animationProgressReachedEventCallback);
+ }
}
if(disposed)
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
-
- DisConnectFromSignals();
+ if (this != null)
+ {
+ DisConnectFromSignals();
+ }
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- if (_textEditorTextChangedCallbackDelegate != null)
+ if (this != null && _textEditorTextChangedCallbackDelegate != null)
{
TextChangedSignal().Disconnect(_textEditorTextChangedCallbackDelegate);
}
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
-
- if (_textFieldMaxLengthReachedCallbackDelegate != null)
+ if (this != null)
{
- this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
- }
+ if (_textFieldMaxLengthReachedCallbackDelegate != null)
+ {
+ this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
+ }
- if (_textFieldTextChangedCallbackDelegate != null)
- {
- TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
+ if (_textFieldTextChangedCallbackDelegate != null)
+ {
+ TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
+ }
}
if (swigCPtr.Handle != global::System.IntPtr.Zero)
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- if (_videoViewFinishedCallbackDelegate != null)
+ if (this != null && _videoViewFinishedCallbackDelegate != null)
{
FinishedSignal().Disconnect(_videoViewFinishedCallbackDelegate);
}
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
-
- DisConnectFromSignals();
+ if (this != null)
+ {
+ DisConnectFromSignals();
+ }
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
{
NUILog.Debug($"(0x{swigCPtr.Handle:X}) Timer.Dispose(type={type}, disposed={disposed})");
- if (_timerTickCallbackDelegate != null)
+ if (this != null && _timerTickCallbackDelegate != null)
{
TickSignal().Disconnect(_timerTickCallbackOfNative);
}
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
-
- DisConnectFromSignals();
+ if (this != null)
+ {
+ DisConnectFromSignals();
+ }
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
-
- if (_popUpHiddenEventCallbackDelegate != null)
+ if (this != null)
{
- HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
- }
+ if (_popUpHiddenEventCallbackDelegate != null)
+ {
+ HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
+ }
- if (_popUpHidingEventCallbackDelegate != null)
- {
- HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
+ if (_popUpHidingEventCallbackDelegate != null)
+ {
+ HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
+ }
}
if (_popUpShownEventCallbackDelegate != null)
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- if (_progressBarValueChangedCallbackDelegate != null)
+ if (this != null && _progressBarValueChangedCallbackDelegate != null)
{
ValueChangedSignal().Disconnect(_progressBarValueChangedCallbackDelegate);
}
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
-
- if (_scrollBarScrollPositionIntervalReachedEventCallbackDelegate != null)
+ if (this != null)
{
- ScrollPositionIntervalReachedSignal().Disconnect(_scrollBarScrollPositionIntervalReachedEventCallbackDelegate);
- }
+ if (_scrollBarScrollPositionIntervalReachedEventCallbackDelegate != null)
+ {
+ ScrollPositionIntervalReachedSignal().Disconnect(_scrollBarScrollPositionIntervalReachedEventCallbackDelegate);
+ }
- if (_scrollBarPanFinishedEventCallbackDelegate != null)
- {
- PanFinishedSignal().Disconnect(_scrollBarPanFinishedEventCallbackDelegate);
+ if (_scrollBarPanFinishedEventCallbackDelegate != null)
+ {
+ PanFinishedSignal().Disconnect(_scrollBarPanFinishedEventCallbackDelegate);
+ }
}
if (swigCPtr.Handle != global::System.IntPtr.Zero)
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- if (_scrollViewSnapStartedCallbackDelegate != null)
+ if (this != null && _scrollViewSnapStartedCallbackDelegate != null)
{
this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
}
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
-
- if (_sliderValueChangedCallbackDelegate != null)
+ if (this != null)
{
- ValueChangedSignal().Disconnect(_sliderValueChangedCallbackDelegate);
- }
+ if (_sliderValueChangedCallbackDelegate != null)
+ {
+ ValueChangedSignal().Disconnect(_sliderValueChangedCallbackDelegate);
+ }
- if (_sliderSlidingFinishedCallbackDelegate != null)
- {
- SlidingFinishedSignal().Disconnect(_sliderSlidingFinishedCallbackDelegate);
- }
+ if (_sliderSlidingFinishedCallbackDelegate != null)
+ {
+ SlidingFinishedSignal().Disconnect(_sliderSlidingFinishedCallbackDelegate);
+ }
- if (_sliderMarkReachedCallbackDelegate != null)
- {
- MarkReachedSignal().Disconnect(_sliderMarkReachedCallbackDelegate);
+ if (_sliderMarkReachedCallbackDelegate != null)
+ {
+ MarkReachedSignal().Disconnect(_sliderMarkReachedCallbackDelegate);
+ }
}
if (swigCPtr.Handle != global::System.IntPtr.Zero)