- https://code.sec.samsung.net/jira/browse/TFDF-10927
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
/// </summary>
public NfcTag()
{
+ // A method is need to convert delegate to pass unmanaged layer through Interop call
+ // If we do not convert explicitly it, implicitly convert was occurred
+ // and temporal delegate was created. and it could be released by GC
_nativeTransceiveCallback = TransceiveCompletedCallback;
_nativeVoidCallback = VoidCallback;
_nativeTagReadCallback = ReadNdefCallback;
internal NfcTag(IntPtr handle)
{
_tagHandle = handle;
+ _nativeTransceiveCallback = TransceiveCompletedCallback;
+ _nativeVoidCallback = VoidCallback;
+ _nativeTagReadCallback = ReadNdefCallback;
}
/// <summary>