Name: csapi-attach-panel
Summary: Tizen attach panel API for C#
-Version: 1.0.2
+Version: 1.0.3
Release: 1
Group: Development/Libraries
License: Apache-2.0
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <Version>1.0.2</Version>
+ <Version>1.0.3</Version>
<Authors>Samsung Electronics</Authors>
<Copyright>© Samsung Electronics Co., Ltd All Rights Reserved</Copyright>
<Description>Provides the Attach Panel API for Tizen .NET</Description>
checkException(err);
Tizen.Log.Debug("AttachPanelSharp", "Success to create an AttachPanel Instance");
+ isCreationSucceed = true;
_attachPanel = candidateAttachPanel;
if (_eventEventHandler == null)
~AttachPanel()
{
- if (_attachPanel != IntPtr.Zero)
+ if (isCreationSucceed &&
+ _attachPanel != IntPtr.Zero)
{
Interop.AttachPanel.ErrorCode err = Interop.AttachPanel.DestroyAttachPanel(_attachPanel);
checkException(err);
public partial class AttachPanel
{
private static IntPtr _attachPanel;
+ private bool isCreationSucceed;
private static event EventHandler<StateEventArgs> _eventEventHandler;
private static event EventHandler<ResultEventArgs> _resultEventHandler;