{"action":"created","issue":{"url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/issues/1155","repository_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck","labels_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/issues/1155/labels{/name}","comments_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/issues/1155/comments","events_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/issues/1155/events","html_url":"https://github.com/rubberduck-vba/Rubberduck/issues/1155","id":137148749,"number":1155,"title":"Closing a project keeps it in the VBE","user":{"login":"retailcoder","id":5751684,"avatar_url":"https://avatars.githubusercontent.com/u/5751684?v=3","gravatar_id":"","url":"https://api.github.com/users/retailcoder","html_url":"https://github.com/retailcoder","followers_url":"https://api.github.com/users/retailcoder/followers","following_url":"https://api.github.com/users/retailcoder/following{/other_user}","gists_url":"https://api.github.com/users/retailcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/retailcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retailcoder/subscriptions","organizations_url":"https://api.github.com/users/retailcoder/orgs","repos_url":"https://api.github.com/users/retailcoder/repos","events_url":"https://api.github.com/users/retailcoder/events{/privacy}","received_events_url":"https://api.github.com/users/retailcoder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/labels/code-parsing","name":"code-parsing","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/milestones/20","html_url":"https://github.com/rubberduck-vba/Rubberduck/milestones/Version%202.0","labels_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/milestones/20/labels","id":1063094,"number":20,"title":"Version 2.0","description":"This version will include source control (GitHub) integration, WPF controls in dockable hosts, many more refactorings and inspections, and lots of bug fixes.","creator":{"login":"retailcoder","id":5751684,"avatar_url":"https://avatars.githubusercontent.com/u/5751684?v=3","gravatar_id":"","url":"https://api.github.com/users/retailcoder","html_url":"https://github.com/retailcoder","followers_url":"https://api.github.com/users/retailcoder/followers","following_url":"https://api.github.com/users/retailcoder/following{/other_user}","gists_url":"https://api.github.com/users/retailcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/retailcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retailcoder/subscriptions","organizations_url":"https://api.github.com/users/retailcoder/orgs","repos_url":"https://api.github.com/users/retailcoder/repos","events_url":"https://api.github.com/users/retailcoder/events{/privacy}","received_events_url":"https://api.github.com/users/retailcoder/received_events","type":"User","site_admin":false},"open_issues":60,"closed_issues":139,"state":"open","created_at":"2015-04-11T13:20:05Z","updated_at":"2016-02-29T04:39:31Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-02-29T04:39:31Z","updated_at":"2016-02-29T14:29:13Z","closed_at":null,"body":"Per [this SO answer](http://stackoverflow.com/a/8760306/1188513), MZ-Tools and Smart Indenter have the same problem.\r\n\r\nHowever in our case, a `TargetInvocationException` gets thrown as soon as we reparse, which takes down the host app.\r\n\r\nWhen the project gets correctly removed, opening a new or existing project blows everything up as well.\r\n\r\nLovely COM interaction at its best. Tagging with [code-parsing], since it seems to be related to parser state. Not sure how to fix."},"comment":{"url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/issues/comments/190231595","html_url":"https://github.com/rubberduck-vba/Rubberduck/issues/1155#issuecomment-190231595","issue_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/issues/1155","id":190231595,"user":{"login":"ThunderFrame","id":16574009,"avatar_url":"https://avatars.githubusercontent.com/u/16574009?v=3","gravatar_id":"","url":"https://api.github.com/users/ThunderFrame","html_url":"https://github.com/ThunderFrame","followers_url":"https://api.github.com/users/ThunderFrame/followers","following_url":"https://api.github.com/users/ThunderFrame/following{/other_user}","gists_url":"https://api.github.com/users/ThunderFrame/gists{/gist_id}","starred_url":"https://api.github.com/users/ThunderFrame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThunderFrame/subscriptions","organizations_url":"https://api.github.com/users/ThunderFrame/orgs","repos_url":"https://api.github.com/users/ThunderFrame/repos","events_url":"https://api.github.com/users/ThunderFrame/events{/privacy}","received_events_url":"https://api.github.com/users/ThunderFrame/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T14:29:13Z","updated_at":"2016-02-29T14:29:13Z","body":"Hmm, I wonder if we have a 2-dots problem...\r\n[This](http://www.siddharthrout.com/2012/08/06/vb-net-two-dot-rule-when-working-with-office-applications-2/) is an article for VB.NET, but there's an SO post for C# [here](http://stackoverflow.com/questions/13069153/eliminating-use-of-2-dots-when-using-excel-interop-com-objects-c-sharp)\r\n\r\n> Using Two Dots when calling xlApp.Workbooks.Add creates an RCW (Runtime Callable Wrapper) for the Workbooks object. If you invoke these accessors, the RCW  for Workbooks is created on the GC heap. However what’s worth noting is that the reference is created under the hood on the stack and are then discarded. Because of this there is no way to call MarshalFinalReleaseComObject on this RCW. Therefore, if all references have not been released on the RCW, the COM object does not quit and this results in an instance of your Excel Application (in this case) being left in Task Manager."}}