{"action":"closed","issue":{"url":"https://api.github.com/repos/cefsharp/CefSharp/issues/2240","repository_url":"https://api.github.com/repos/cefsharp/CefSharp","labels_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/2240/labels{/name}","comments_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/2240/comments","events_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/2240/events","html_url":"https://github.com/cefsharp/CefSharp/issues/2240","id":289514406,"number":2240,"title":"System.Reflection.TargetInvocationException when trying to delete cookies before shutdown","user":{"login":"singhprab","id":35488267,"avatar_url":"https://avatars1.githubusercontent.com/u/35488267?v=4","gravatar_id":"","url":"https://api.github.com/users/singhprab","html_url":"https://github.com/singhprab","followers_url":"https://api.github.com/users/singhprab/followers","following_url":"https://api.github.com/users/singhprab/following{/other_user}","gists_url":"https://api.github.com/users/singhprab/gists{/gist_id}","starred_url":"https://api.github.com/users/singhprab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singhprab/subscriptions","organizations_url":"https://api.github.com/users/singhprab/orgs","repos_url":"https://api.github.com/users/singhprab/repos","events_url":"https://api.github.com/users/singhprab/events{/privacy}","received_events_url":"https://api.github.com/users/singhprab/received_events","type":"User","site_admin":false},"labels":[{"id":106002740,"url":"https://api.github.com/repos/cefsharp/CefSharp/labels/more-details-needed-from-op","name":"more-details-needed-from-op","color":"123456","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-01-18T06:02:53Z","updated_at":"2018-02-13T03:05:51Z","closed_at":"2018-02-13T03:05:50Z","author_association":"NONE","body":"Issue : Before closing the application, we are deleting the CEFSharp browser cookies. In some of the scenarios deleting cookies is throwing System.Reflection.TargetInvocationException. This does not happen every time.\r\n\r\nCode : \r\n```\r\nif (Cef.IsInitialized)\r\n            {\r\n                Cef.GetGlobalCookieManager().DeleteCookies(String.Empty, String.Empty);\r\n                Cef.Shutdown();\r\n            }\r\n```\r\n\r\nThe initialisation of Cef and the deletion of cookies are happening on the same thread (Managed Thread id is 1).\r\n\r\n![image](https://user-images.githubusercontent.com/35488267/35082918-4542113a-fc42-11e7-80af-0831b018514d.png)\r\n\r\n\r\n![image](https://user-images.githubusercontent.com/35488267/35082941-67c2d6cc-fc42-11e7-9191-a7122886416d.png)\r\n"}}
{"actor":{"display_login":"amaitland"}}