{"action":"created","issue":{"url":"https://api.github.com/repos/peteraritchie/LongPath/issues/26","labels_url":"https://api.github.com/repos/peteraritchie/LongPath/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/peteraritchie/LongPath/issues/26/comments","events_url":"https://api.github.com/repos/peteraritchie/LongPath/issues/26/events","html_url":"https://github.com/peteraritchie/LongPath/issues/26","id":84620562,"number":26,"title":"AccessViolationException in Directory.cs","user":{"login":"rootchord","id":1024266,"avatar_url":"https://avatars.githubusercontent.com/u/1024266?v=3","gravatar_id":"","url":"https://api.github.com/users/rootchord","html_url":"https://github.com/rootchord","followers_url":"https://api.github.com/users/rootchord/followers","following_url":"https://api.github.com/users/rootchord/following{/other_user}","gists_url":"https://api.github.com/users/rootchord/gists{/gist_id}","starred_url":"https://api.github.com/users/rootchord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rootchord/subscriptions","organizations_url":"https://api.github.com/users/rootchord/orgs","repos_url":"https://api.github.com/users/rootchord/repos","events_url":"https://api.github.com/users/rootchord/events{/privacy}","received_events_url":"https://api.github.com/users/rootchord/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-03T15:26:48Z","updated_at":"2015-08-11T23:09:14Z","closed_at":null,"body":"I wrote a simple program that reads folder permissions recursively for a large network share. Everything goes fine until it gets to a certain point then it throws an AccessViolationException  pointing to this line:\r\n\r\nvar length = NativeMethods.GetSecurityDescriptorLength(byteArray);\r\n\r\nAny Ideas?"},"comment":{"url":"https://api.github.com/repos/peteraritchie/LongPath/issues/comments/130106543","html_url":"https://github.com/peteraritchie/LongPath/issues/26#issuecomment-130106543","issue_url":"https://api.github.com/repos/peteraritchie/LongPath/issues/26","id":130106543,"user":{"login":"rootchord","id":1024266,"avatar_url":"https://avatars.githubusercontent.com/u/1024266?v=3","gravatar_id":"","url":"https://api.github.com/users/rootchord","html_url":"https://github.com/rootchord","followers_url":"https://api.github.com/users/rootchord/followers","following_url":"https://api.github.com/users/rootchord/following{/other_user}","gists_url":"https://api.github.com/users/rootchord/gists{/gist_id}","starred_url":"https://api.github.com/users/rootchord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rootchord/subscriptions","organizations_url":"https://api.github.com/users/rootchord/orgs","repos_url":"https://api.github.com/users/rootchord/repos","events_url":"https://api.github.com/users/rootchord/events{/privacy}","received_events_url":"https://api.github.com/users/rootchord/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T23:09:14Z","updated_at":"2015-08-11T23:09:14Z","body":"Well upon further investigation it looks like it's related to the issue with UNC paths. The error happens as soon as the UNC path exceeds 250 characters. If this sounds right, i'll close this issue."}}