protected override void OnStop() { //!!ObjCopy.obj_NetworkAction.StopServer();//!!заменено на IPC obj_NetworkAction.StopServer();//IPC call new YakSysServerDBEnvironment().WriteServerSettingsData(Application.StartupPath + "\\YakSysServerDB"); UnregisterAllIPCChannels(); bool_NeedToStopProcWinWatcher = true; Thread.Sleep(500); KillProcWindowModule(); Process.GetCurrentProcess().Kill(); }