Prevent from GC regarding callbacks variable.
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 8 May 2017 02:25:33 +0000 (11:25 +0900)
committerChulSeung Kim <charles0.kim@samsung.com>
Thu, 8 Jun 2017 09:34:54 +0000 (18:34 +0900)
commit98e3330ee08a4833ea8f7979fa44c8ca99ec5139
treefab0b16c6f85ab41b781bf2cf7dabdae550e91fd
parente8df87f35143575086d56c20a01cac7d593bbb08
Prevent from GC regarding callbacks variable.

Even if we passed callbacks member variable to interop API,
It is released by GC.

C# runtime does not recognize status of the interop API.
So it is able to release the varaibles anytime when it meets
some condition to do that.

To prevent from GC, use the static.
If there is better way to avoid GC, we should consider it again.

Change-Id: I351f89bfc5350ec19e462999d2331e194244d0b5
Signed-off-by: Sung-jae Park <nicesj.park@samsung.com>
TVHome/TVHome.TizenTV/Sniper.cs
TVHome/TVHome.TizenTV/SniperInterOp.cs