public static void PushTabBarInstance(QTTabBarClass tabbar) { IntPtr handle = tabbar.Handle; using (new Keychain(rwLockTabBar, true)) { dictTabInstances[Thread.CurrentThread] = tabbar; sdTabHandles.Push(handle, tabbar); } ICommService service = GetChannel(); if (service != null) { service.PushInstance(handle); } }