{"action":"created","issue":{"url":"https://api.github.com/repos/sharpdx/SharpDX/issues/982","repository_url":"https://api.github.com/repos/sharpdx/SharpDX","labels_url":"https://api.github.com/repos/sharpdx/SharpDX/issues/982/labels{/name}","comments_url":"https://api.github.com/repos/sharpdx/SharpDX/issues/982/comments","events_url":"https://api.github.com/repos/sharpdx/SharpDX/issues/982/events","html_url":"https://github.com/sharpdx/SharpDX/issues/982","id":296027894,"number":982,"title":"Disposing Device seems to leak some memory","user":{"login":"mellinoe","id":8918977,"avatar_url":"https://avatars1.githubusercontent.com/u/8918977?v=4","gravatar_id":"","url":"https://api.github.com/users/mellinoe","html_url":"https://github.com/mellinoe","followers_url":"https://api.github.com/users/mellinoe/followers","following_url":"https://api.github.com/users/mellinoe/following{/other_user}","gists_url":"https://api.github.com/users/mellinoe/gists{/gist_id}","starred_url":"https://api.github.com/users/mellinoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mellinoe/subscriptions","organizations_url":"https://api.github.com/users/mellinoe/orgs","repos_url":"https://api.github.com/users/mellinoe/repos","events_url":"https://api.github.com/users/mellinoe/events{/privacy}","received_events_url":"https://api.github.com/users/mellinoe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-09T22:10:05Z","updated_at":"2018-02-09T22:15:15Z","closed_at":null,"author_association":"NONE","body":"Consider code like this:\r\n\r\n```C#\r\nfor (int i = 0; i < 1_000_000; i++)\r\n{\r\n    Device d = new Device(SharpDX.Direct3D.DriverType.Hardware);\r\n    d.Dispose();\r\n}\r\n```\r\n\r\nThis seems to cause a very small leak each iteration. After about 5,000 iterations memory usage has jumped about 10 MB, which admittedly is not very much. This isn't a major problem, but I'd like to understand if I'm doing something wrong or if my measurements/debugging approach are wrong in some way.\r\n\r\nThis repros on the latest \"CI\" nuget package, but I haven't tried against the latest code in this repo yet (assuming there are changes after that CI build)."},"comment":{"url":"https://api.github.com/repos/sharpdx/SharpDX/issues/comments/364584933","html_url":"https://github.com/sharpdx/SharpDX/issues/982#issuecomment-364584933","issue_url":"https://api.github.com/repos/sharpdx/SharpDX/issues/982","id":364584933,"user":{"login":"mellinoe","id":8918977,"avatar_url":"https://avatars1.githubusercontent.com/u/8918977?v=4","gravatar_id":"","url":"https://api.github.com/users/mellinoe","html_url":"https://github.com/mellinoe","followers_url":"https://api.github.com/users/mellinoe/followers","following_url":"https://api.github.com/users/mellinoe/following{/other_user}","gists_url":"https://api.github.com/users/mellinoe/gists{/gist_id}","starred_url":"https://api.github.com/users/mellinoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mellinoe/subscriptions","organizations_url":"https://api.github.com/users/mellinoe/orgs","repos_url":"https://api.github.com/users/mellinoe/repos","events_url":"https://api.github.com/users/mellinoe/events{/privacy}","received_events_url":"https://api.github.com/users/mellinoe/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T22:15:15Z","updated_at":"2018-02-09T22:15:15Z","author_association":"NONE","body":"I wonder if this is this fix: https://github.com/sharpdx/SharpDX/pull/945\r\n\r\nI had seen that change and assumed it was in the 4.1.0-ci184 build. But it turns out that build was actually from the day before the change, so it's not in there.\r\n\r\n@amerkoleci Do you think that change would fix this?"}}
{"actor":{"display_login":"mellinoe"}}