{"action":"closed","issue":{"url":"https://api.github.com/repos/EvilBeaver/OneScript/issues/321","repository_url":"https://api.github.com/repos/EvilBeaver/OneScript","labels_url":"https://api.github.com/repos/EvilBeaver/OneScript/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/EvilBeaver/OneScript/issues/321/comments","events_url":"https://api.github.com/repos/EvilBeaver/OneScript/issues/321/events","html_url":"https://github.com/EvilBeaver/OneScript/issues/321","id":170813159,"number":321,"title":"Не закрывается соединение с ComConnector при присвоении Неопределено","user":{"login":"Diversus23","id":19926084,"avatar_url":"https://avatars.githubusercontent.com/u/19926084?v=3","gravatar_id":"","url":"https://api.github.com/users/Diversus23","html_url":"https://github.com/Diversus23","followers_url":"https://api.github.com/users/Diversus23/followers","following_url":"https://api.github.com/users/Diversus23/following{/other_user}","gists_url":"https://api.github.com/users/Diversus23/gists{/gist_id}","starred_url":"https://api.github.com/users/Diversus23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diversus23/subscriptions","organizations_url":"https://api.github.com/users/Diversus23/orgs","repos_url":"https://api.github.com/users/Diversus23/repos","events_url":"https://api.github.com/users/Diversus23/events{/privacy}","received_events_url":"https://api.github.com/users/Diversus23/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/EvilBeaver/OneScript/labels/wontfix","name":"wontfix","color":"dddddd"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-12T07:21:51Z","updated_at":"2016-08-16T11:12:09Z","closed_at":"2016-08-16T11:12:09Z","body":"При работе с CоmConnector после его использования, чтобы закрыть соединение, переменной, в которой находится значению соединения необходимо присвоить Неопределено (или пустую строку). Пример:\r\n```\r\n\tИмяCOMСоединителя = \"V83.ComConnector\";\r\n\tПопытка\r\n\t\tCOMОбъект = Новый COMОбъект(ИмяCOMСоединителя);\r\n\t\tСоединение = COMОбъект.Connect(юсПараметры[\"СтрокаПодключения\"]);\r\n\tИсключение\r\n\t\tюсСообщить(\"ERROR\", \"Не удалось подключиться через \" + ИмяCOMСоединителя + \" по причине: \" + ОписаниеОшибки());\r\n\t\tВозврат;\r\n\tКонецПопытки;\t\r\n\r\n...\r\n// Закрываем соединение\r\nСоединение \t= Неопределено;\r\nCOMОбъект\t= Неопределено;\r\n// Тут COM-соединение активно и препятствует монопольной работе с базой!\r\n```"}}
{"actor":{"display_login":"EvilBeaver"}}