projects
/
platform
/
core
/
csapi
/
tizenfx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not register when we try to copy same handle
[platform/core/csapi/tizenfx.git]
/
src
/
Tizen.NUI
/
src
/
public
/
Common
/
BaseHandle.cs
diff --git
a/src/Tizen.NUI/src/public/Common/BaseHandle.cs
b/src/Tizen.NUI/src/public/Common/BaseHandle.cs
index
b8e7eb3
..
2729cb9
100755
(executable)
--- a/
src/Tizen.NUI/src/public/Common/BaseHandle.cs
+++ b/
src/Tizen.NUI/src/public/Common/BaseHandle.cs
@@
-59,8
+59,9
@@
namespace Tizen.NUI
/// Create an instance of BaseHandle.
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// Create an instance of BaseHandle.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- public BaseHandle() : this(Interop.BaseHandle.NewBaseHandle())
+ public BaseHandle() : this(Interop.BaseHandle.NewBaseHandle()
, true, false
)
{
{
+ // Note : Empty BaseHandle instance don't need to be register in Registry.
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
@@
-69,8
+70,9
@@
namespace Tizen.NUI
/// </summary>
/// <param name="handle">The BaseHandle instance.</param>
/// <since_tizen> 3 </since_tizen>
/// </summary>
/// <param name="handle">The BaseHandle instance.</param>
/// <since_tizen> 3 </since_tizen>
- public BaseHandle(BaseHandle handle) : this(Interop.BaseHandle.NewBaseHandle(BaseHandle.getCPtr(handle)))
+ public BaseHandle(BaseHandle handle) : this(Interop.BaseHandle.NewBaseHandle(BaseHandle.getCPtr(handle))
, true, false
)
{
{
+ // Note : Copyed BaseHandle instance don't need to be register in Registry.
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}