* limitations under the License.
*
*/
+
+using global::System.Threading;
using Tizen.NUI.BaseComponents;
namespace Tizen.NUI
public void Disconnect(System.Delegate func)
{
- System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
+ try
{
- Interop.ActorSignal.ActorSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
+ {
+ Interop.ActorSignal.ActorSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ }
+ catch (global::System.Exception ex)
+ {
+ Tizen.Log.Fatal("NUI", $"[ERROR] excpetion! {ex}: {ex.Message}");
+ Tizen.Log.Fatal("NUI", $"[ERROR] current threadID : {Thread.CurrentThread.ManagedThreadId}");
+ Tizen.Log.Fatal("NUI", $"[ERROR] back trace!");
+ global::System.Diagnostics.StackTrace st = new global::System.Diagnostics.StackTrace(true);
+ for (int i = 0; i < st.FrameCount; i++)
+ {
+ global::System.Diagnostics.StackFrame sf = st.GetFrame(i);
+ Tizen.Log.Fatal("NUI", " Method " + sf.GetMethod());
+ }
}
}
if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
{
this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
+ _onRelayoutEventCallback = null;
}
}
if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
{
this.OnWindowSignal().Disconnect(_onWindowEventCallback);
+ _onWindowEventCallback = null;
}
}
}
if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
{
this.OffWindowSignal().Disconnect(_offWindowEventCallback);
+ _offWindowEventCallback = null;
}
}
}
if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
{
this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
+ _ResourcesLoadedCallback = null;
}
}
}
if (_backgroundResourceLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
{
this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
+ _backgroundResourceLoadedCallback = null;
}
}
}
if (_onRelayoutEventCallback != null)
{
this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
+ _onRelayoutEventCallback = null;
}
if (_offWindowEventCallback != null)
{
this.OffWindowSignal().Disconnect(_offWindowEventCallback);
+ _offWindowEventCallback = null;
}
if (_onWindowEventCallback != null)
{
this.OnWindowSignal().Disconnect(_onWindowEventCallback);
+ _onWindowEventCallback = null;
}
if (_wheelEventCallback != null)
if (_ResourcesLoadedCallback != null)
{
this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
+ _ResourcesLoadedCallback = null;
}
if (_offWindowEventCallback != null)
if (_backgroundResourceLoadedCallback != null)
{
this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
+ _backgroundResourceLoadedCallback = null;
}
if (_onWindowSendEventCallback != null)