Fix DisposeQueue issue by using EventThreadCallback class
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / events / application-event.i
index 3db23f4..3050ae7 100644 (file)
     // Callback for Application InitSignal
     private void OnApplicationInit(IntPtr data)
     {
+      // Initialize DisposeQueue Singleton class. This is also required to create DisposeQueue on main thread.
+      DisposeQueue.Instance.Initialize();
+
       NUIApplicationInitEventArgs e = new NUIApplicationInitEventArgs();
 
       // Populate all members of "e" (NUIApplicationInitEventArgs) with real data
       return ret;
     }
 
-    public bool AddIdle(System.Delegate func) {
-      System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
-      System.IntPtr ip2 = NDalicManualPINVOKE.MakeCallback(new System.Runtime.InteropServices.HandleRef(this, ip));
-
-      bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip2));
-
-      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    }
-
     %}
     %enddef