{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/ClearScript/issues/65","repository_url":"https://api.github.com/repos/Microsoft/ClearScript","labels_url":"https://api.github.com/repos/Microsoft/ClearScript/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ClearScript/issues/65/comments","events_url":"https://api.github.com/repos/Microsoft/ClearScript/issues/65/events","html_url":"https://github.com/Microsoft/ClearScript/issues/65","id":360068081,"node_id":"MDU6SXNzdWUzNjAwNjgwODE=","number":65,"title":"How can I dispose a manage object that is added by AddHostObject api ?","user":{"login":"SiamAbdullah","id":7626994,"node_id":"MDQ6VXNlcjc2MjY5OTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/7626994?v=4","gravatar_id":"","url":"https://api.github.com/users/SiamAbdullah","html_url":"https://github.com/SiamAbdullah","followers_url":"https://api.github.com/users/SiamAbdullah/followers","following_url":"https://api.github.com/users/SiamAbdullah/following{/other_user}","gists_url":"https://api.github.com/users/SiamAbdullah/gists{/gist_id}","starred_url":"https://api.github.com/users/SiamAbdullah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SiamAbdullah/subscriptions","organizations_url":"https://api.github.com/users/SiamAbdullah/orgs","repos_url":"https://api.github.com/users/SiamAbdullah/repos","events_url":"https://api.github.com/users/SiamAbdullah/events{/privacy}","received_events_url":"https://api.github.com/users/SiamAbdullah/received_events","type":"User","site_admin":false},"labels":[{"id":597876348,"node_id":"MDU6TGFiZWw1OTc4NzYzNDg=","url":"https://api.github.com/repos/Microsoft/ClearScript/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":{"login":"ClearScriptLib","id":12966733,"node_id":"MDQ6VXNlcjEyOTY2NzMz","avatar_url":"https://avatars1.githubusercontent.com/u/12966733?v=4","gravatar_id":"","url":"https://api.github.com/users/ClearScriptLib","html_url":"https://github.com/ClearScriptLib","followers_url":"https://api.github.com/users/ClearScriptLib/followers","following_url":"https://api.github.com/users/ClearScriptLib/following{/other_user}","gists_url":"https://api.github.com/users/ClearScriptLib/gists{/gist_id}","starred_url":"https://api.github.com/users/ClearScriptLib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClearScriptLib/subscriptions","organizations_url":"https://api.github.com/users/ClearScriptLib/orgs","repos_url":"https://api.github.com/users/ClearScriptLib/repos","events_url":"https://api.github.com/users/ClearScriptLib/events{/privacy}","received_events_url":"https://api.github.com/users/ClearScriptLib/received_events","type":"User","site_admin":false},"assignees":[{"login":"ClearScriptLib","id":12966733,"node_id":"MDQ6VXNlcjEyOTY2NzMz","avatar_url":"https://avatars1.githubusercontent.com/u/12966733?v=4","gravatar_id":"","url":"https://api.github.com/users/ClearScriptLib","html_url":"https://github.com/ClearScriptLib","followers_url":"https://api.github.com/users/ClearScriptLib/followers","following_url":"https://api.github.com/users/ClearScriptLib/following{/other_user}","gists_url":"https://api.github.com/users/ClearScriptLib/gists{/gist_id}","starred_url":"https://api.github.com/users/ClearScriptLib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClearScriptLib/subscriptions","organizations_url":"https://api.github.com/users/ClearScriptLib/orgs","repos_url":"https://api.github.com/users/ClearScriptLib/repos","events_url":"https://api.github.com/users/ClearScriptLib/events{/privacy}","received_events_url":"https://api.github.com/users/ClearScriptLib/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-09-13T21:11:09Z","updated_at":"2018-09-14T02:33:22Z","closed_at":"2018-09-14T02:33:22Z","author_association":"NONE","body":"Hello,\r\n\r\nI am using ClearScript.V8 for my project. I want to dispose one of the object that I added using AddHostObject api. \r\n\r\n```\r\npublic class A(){\r\n    int a;\r\n   public A(int a1){a=a1;}\r\n}\r\n\r\n..........\r\n\r\npublic ExecuteScript(){\r\n    var engine = new V8ScriptEngine();\r\n    engine.AddHostObject(\"Host\", new A(1));\r\n   ############## execute some script #####\r\n    \r\n      **** how can i release host object \"Host\" ***\r\n     engine.AddHostObject(\"Host\", new A(2));\r\n      ############## execute some script #####\r\n\r\n     engine.dispose();\r\n}\r\n```\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"SiamAbdullah"}}