private global::System.Runtime.InteropServices.HandleRef swigCPtr;
private bool played = false;
- private string stackTrace;
internal Timer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Timer_SWIGUpcast(cPtr), cMemoryOwn)
{
/// <since_tizen> 3 </since_tizen>
protected override void Dispose(DisposeTypes type)
{
- if(disposed)
+ if (disposed)
{
return;
}
- if(type == DisposeTypes.Explicit)
+ if (type == DisposeTypes.Explicit)
{
//Called by User
//Release your own managed resources here.
if (played == false)
{
- Tizen.Log.Fatal("NUI", $"should not be here! OnTick()!swigCPtr={swigCPtr.Handle}");
- Tizen.Log.Fatal("NUI", "should not be here! #################### TID = " + global::System.Threading.Thread.CurrentThread.ManagedThreadId);
- Tizen.Log.Fatal("NUI", stackTrace);
+ Tizen.Log.Fatal("NUI", $"({swigCPtr.Handle}) OnTick() is called even played is false!");
}
if (_timerTickEventHandler != null && played == true)
/// <since_tizen> 3 </since_tizen>
public Timer(uint milliSec) : this(NDalicPINVOKE.Timer_New(milliSec), true)
{
- stackTrace = Environment.StackTrace;
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ Tizen.Log.Error("NUI", $"({swigCPtr.Handle}) Timer({milliSec}) Constructor!");
}
internal Timer(Timer timer) : this(NDalicPINVOKE.new_Timer__SWIG_1(Timer.getCPtr(timer)), true)
{
[EditorBrowsable(EditorBrowsableState.Never)]
public static Timer DownCast(BaseHandle handle)
{
- Timer ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Timer;
+ Timer ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Timer;
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <param name="milliSec">MilliSec interval in milliseconds.</param>
internal void SetInterval(uint milliSec)
{
+
+ Tizen.Log.Error("NUI", $"({swigCPtr.Handle}) SetInterval({milliSec})");
+
NDalicPINVOKE.Timer_SetInterval(swigCPtr, milliSec);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+
+ played = true;
}
internal uint GetInterval()
{
uint ret = NDalicPINVOKE.Timer_GetInterval(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ Tizen.Log.Error("NUI", $"({swigCPtr.Handle})GetInterval({ret})");
return ret;
}