[Tizen.Multimedia] add logs to check GCHandle (#377)
authornam <36914158+kqjy777@users.noreply.github.com>
Thu, 9 Aug 2018 05:18:17 +0000 (14:18 +0900)
committerGitHub <noreply@github.com>
Thu, 9 Aug 2018 05:18:17 +0000 (14:18 +0900)
* [Tizen.Multimedia] add logs to check GCHandle

src/Tizen.Multimedia/Common.Internal/ObjectKeeper.cs

index c2061d3584ddf29fd9227487482feab887905b8b..73f6420de31c8d68078ecf9bda042391ea86eeda 100644 (file)
@@ -40,6 +40,7 @@ namespace Tizen.Multimedia
             {
                 Target = obj;
                 _handle = GCHandle.Alloc(obj);
+                Log.Info("Tizen.Multimedia", "GCHandle is allocated.");
             }
 
             ~ObjectKeeperImpl()
@@ -54,7 +55,7 @@ namespace Tizen.Multimedia
                 if (!disposedValue)
                 {
                     _handle.Free();
-
+                    Log.Info("Tizen.Multimedia", $"GCHandle is freed. (disposing value : {disposing})");
                     disposedValue = true;
                 }
             }