{"action":"created","issue":{"url":"https://api.github.com/repos/Sicos1977/MSGReader/issues/61","repository_url":"https://api.github.com/repos/Sicos1977/MSGReader","labels_url":"https://api.github.com/repos/Sicos1977/MSGReader/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/Sicos1977/MSGReader/issues/61/comments","events_url":"https://api.github.com/repos/Sicos1977/MSGReader/issues/61/events","html_url":"https://github.com/Sicos1977/MSGReader/issues/61","id":241157926,"number":61,"title":"RCW Issue, when calling ExtractMsgEmailBody multiple times","user":{"login":"Timothyoverton","id":11729026,"avatar_url":"https://avatars0.githubusercontent.com/u/11729026?v=4","gravatar_id":"","url":"https://api.github.com/users/Timothyoverton","html_url":"https://github.com/Timothyoverton","followers_url":"https://api.github.com/users/Timothyoverton/followers","following_url":"https://api.github.com/users/Timothyoverton/following{/other_user}","gists_url":"https://api.github.com/users/Timothyoverton/gists{/gist_id}","starred_url":"https://api.github.com/users/Timothyoverton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Timothyoverton/subscriptions","organizations_url":"https://api.github.com/users/Timothyoverton/orgs","repos_url":"https://api.github.com/users/Timothyoverton/repos","events_url":"https://api.github.com/users/Timothyoverton/events{/privacy}","received_events_url":"https://api.github.com/users/Timothyoverton/received_events","type":"User","site_admin":false},"labels":[{"id":80796702,"url":"https://api.github.com/repos/Sicos1977/MSGReader/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-07-07T05:01:06Z","updated_at":"2017-08-01T15:30:55Z","closed_at":null,"body":"Hi Sicos,\r\n\r\nWe use your MsgReader internally to get the contents of a msg file, using the ExtractMsgEmailBody method. Your Dll is being called multiple times on a terminal server. I first thought it was the terminal server but I have been able to replicate the issue locally using a few task threads, see screenshot.\r\n![msgreadererror](https://user-images.githubusercontent.com/11729026/27943704-c6b51972-6324-11e7-9ef0-ef323adceae0.PNG)\r\nSeems to be a problem in the disposing method, any ideas would be appreciated?\r\n\r\nThis is how we are calling your method\r\n\t\t`\r\nusing (var fs = File.Open(sourceFile, FileMode.Open, FileAccess.Read, FileShare.Read))\r\n                {\r\n                    using (var msg = new MsgReader.Outlook.Storage.Message(fs))\r\n                    {\r\n                        var msgReader = new Reader();\r\n                        return msgReader.ExtractMsgEmailBody(msg, true, \"text/html; charset=utf-8\");\r\n                    }\r\n                }\r\n`\r\n\r\nThanks for your tool - this is a very handy project\r\nTim\r\n"},"comment":{"url":"https://api.github.com/repos/Sicos1977/MSGReader/issues/comments/319406546","html_url":"https://github.com/Sicos1977/MSGReader/issues/61#issuecomment-319406546","issue_url":"https://api.github.com/repos/Sicos1977/MSGReader/issues/61","id":319406546,"user":{"login":"Sicos1977","id":6692947,"avatar_url":"https://avatars0.githubusercontent.com/u/6692947?v=4","gravatar_id":"","url":"https://api.github.com/users/Sicos1977","html_url":"https://github.com/Sicos1977","followers_url":"https://api.github.com/users/Sicos1977/followers","following_url":"https://api.github.com/users/Sicos1977/following{/other_user}","gists_url":"https://api.github.com/users/Sicos1977/gists{/gist_id}","starred_url":"https://api.github.com/users/Sicos1977/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sicos1977/subscriptions","organizations_url":"https://api.github.com/users/Sicos1977/orgs","repos_url":"https://api.github.com/users/Sicos1977/repos","events_url":"https://api.github.com/users/Sicos1977/events{/privacy}","received_events_url":"https://api.github.com/users/Sicos1977/received_events","type":"User","site_admin":false},"created_at":"2017-08-01T15:30:55Z","updated_at":"2017-08-01T15:30:55Z","body":"I think that I found the problem. There was no using in the method so resources where not released after use.\r\n\r\n![image](https://user-images.githubusercontent.com/6692947/28833266-1dbd912c-76df-11e7-82e7-f6934096af37.png)\r\n"}}
{"actor":{"display_login":"Sicos1977"}}