{"action":"created","issue":{"url":"https://api.github.com/repos/mono/MonoGame/issues/4046","labels_url":"https://api.github.com/repos/mono/MonoGame/issues/4046/labels{/name}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/4046/comments","events_url":"https://api.github.com/repos/mono/MonoGame/issues/4046/events","html_url":"https://github.com/mono/MonoGame/pull/4046","id":98774362,"number":4046,"title":"Fixup for DesktopGL Exit errors","user":{"login":"cra0zy","id":6773302,"avatar_url":"https://avatars.githubusercontent.com/u/6773302?v=3","gravatar_id":"","url":"https://api.github.com/users/cra0zy","html_url":"https://github.com/cra0zy","followers_url":"https://api.github.com/users/cra0zy/followers","following_url":"https://api.github.com/users/cra0zy/following{/other_user}","gists_url":"https://api.github.com/users/cra0zy/gists{/gist_id}","starred_url":"https://api.github.com/users/cra0zy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cra0zy/subscriptions","organizations_url":"https://api.github.com/users/cra0zy/orgs","repos_url":"https://api.github.com/users/cra0zy/repos","events_url":"https://api.github.com/users/cra0zy/events{/privacy}","received_events_url":"https://api.github.com/users/cra0zy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-08-03T15:55:20Z","updated_at":"2015-09-05T12:39:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mono/MonoGame/pulls/4046","html_url":"https://github.com/mono/MonoGame/pull/4046","diff_url":"https://github.com/mono/MonoGame/pull/4046.diff","patch_url":"https://github.com/mono/MonoGame/pull/4046.patch"},"body":"Fixes: #3540\r\n\r\nStuff done:\r\n - Fixes BadWindow, BadCursor and OpenTK: Failed to make context current errors\r\n   - was occurring because of window getting Disposed before the rest of the things completed like disposing of Textures(which require a valid window handle), to fix it I close the window at the end of platform.Dispose() so that everything could complete correctly before exiting.\r\n - Fixes AL Sources Error\r\n   - whoever wrote the code didn't dispose of the sources at the end... nothing major\r\n - Fixes AL Device Not Closed error\r\n   - was occurring because of the BadWindow and BadCursor errors were stopping dispose from completing\r\n - Fixed native stacktrace error\r\n   - was occurring because of _toolkit.Dispose()... it's an error within OpenTK, but since _toolkit was an unused variable I just removed it"},"comment":{"url":"https://api.github.com/repos/mono/MonoGame/issues/comments/137949928","html_url":"https://github.com/mono/MonoGame/pull/4046#issuecomment-137949928","issue_url":"https://api.github.com/repos/mono/MonoGame/issues/4046","id":137949928,"user":{"login":"paewie","id":11522235,"avatar_url":"https://avatars.githubusercontent.com/u/11522235?v=3","gravatar_id":"","url":"https://api.github.com/users/paewie","html_url":"https://github.com/paewie","followers_url":"https://api.github.com/users/paewie/followers","following_url":"https://api.github.com/users/paewie/following{/other_user}","gists_url":"https://api.github.com/users/paewie/gists{/gist_id}","starred_url":"https://api.github.com/users/paewie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paewie/subscriptions","organizations_url":"https://api.github.com/users/paewie/orgs","repos_url":"https://api.github.com/users/paewie/repos","events_url":"https://api.github.com/users/paewie/events{/privacy}","received_events_url":"https://api.github.com/users/paewie/received_events","type":"User","site_admin":false},"created_at":"2015-09-05T12:39:32Z","updated_at":"2015-09-05T12:39:32Z","body":"I just deleted my whole \\bin subdir... Nothing. I now double check using the files from the last link you gave me, deleted \\bin again. Again: \"Error 6\"\r\nWe could talk about TeamViewer, but not in public xD"}}