Warning: Accessing a member on may cause a runtime exception because it is a field of a marshal-by-reference class (compiler warning CS1690) - Is prevented by creating a local copy of the field - https://msdn.microsoft.com/en-us/library/x524dkh4.aspx - Removed few unused variables Related to Issue [WTI-49]