public static void ObserveObjectIdentity(string label, object obj) { using (new WrapperSentry()) { int objnumber = (obj == null) ? 0 : ClrSyncManager.SyncManager.GetSyncVarFromObject(obj); MChessChess.ObservePointerValue(label, objnumber); } }