{"action":"closed","issue":{"url":"https://api.github.com/repos/OpenMAMA/OpenMAMA/issues/55","repository_url":"https://api.github.com/repos/OpenMAMA/OpenMAMA","labels_url":"https://api.github.com/repos/OpenMAMA/OpenMAMA/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/OpenMAMA/OpenMAMA/issues/55/comments","events_url":"https://api.github.com/repos/OpenMAMA/OpenMAMA/issues/55/events","html_url":"https://github.com/OpenMAMA/OpenMAMA/issues/55","id":111591745,"number":55,"title":"Question about openWithProperties","user":{"login":"adriennea","id":14275235,"avatar_url":"https://avatars.githubusercontent.com/u/14275235?v=3","gravatar_id":"","url":"https://api.github.com/users/adriennea","html_url":"https://github.com/adriennea","followers_url":"https://api.github.com/users/adriennea/followers","following_url":"https://api.github.com/users/adriennea/following{/other_user}","gists_url":"https://api.github.com/users/adriennea/gists{/gist_id}","starred_url":"https://api.github.com/users/adriennea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriennea/subscriptions","organizations_url":"https://api.github.com/users/adriennea/orgs","repos_url":"https://api.github.com/users/adriennea/repos","events_url":"https://api.github.com/users/adriennea/events{/privacy}","received_events_url":"https://api.github.com/users/adriennea/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenMAMA/OpenMAMA/labels/bug","name":"bug","color":"fbca04"},{"url":"https://api.github.com/repos/OpenMAMA/OpenMAMA/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"fquinner","id":8431703,"avatar_url":"https://avatars.githubusercontent.com/u/8431703?v=3","gravatar_id":"","url":"https://api.github.com/users/fquinner","html_url":"https://github.com/fquinner","followers_url":"https://api.github.com/users/fquinner/followers","following_url":"https://api.github.com/users/fquinner/following{/other_user}","gists_url":"https://api.github.com/users/fquinner/gists{/gist_id}","starred_url":"https://api.github.com/users/fquinner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fquinner/subscriptions","organizations_url":"https://api.github.com/users/fquinner/orgs","repos_url":"https://api.github.com/users/fquinner/repos","events_url":"https://api.github.com/users/fquinner/events{/privacy}","received_events_url":"https://api.github.com/users/fquinner/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/OpenMAMA/OpenMAMA/milestones/1","html_url":"https://github.com/OpenMAMA/OpenMAMA/milestones/OpenMAMA-2.4.0","labels_url":"https://api.github.com/repos/OpenMAMA/OpenMAMA/milestones/1/labels","id":1485048,"number":1,"title":"OpenMAMA-2.4.0","description":null,"creator":{"login":"adriennea","id":14275235,"avatar_url":"https://avatars.githubusercontent.com/u/14275235?v=3","gravatar_id":"","url":"https://api.github.com/users/adriennea","html_url":"https://github.com/adriennea","followers_url":"https://api.github.com/users/adriennea/followers","following_url":"https://api.github.com/users/adriennea/following{/other_user}","gists_url":"https://api.github.com/users/adriennea/gists{/gist_id}","starred_url":"https://api.github.com/users/adriennea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriennea/subscriptions","organizations_url":"https://api.github.com/users/adriennea/orgs","repos_url":"https://api.github.com/users/adriennea/repos","events_url":"https://api.github.com/users/adriennea/events{/privacy}","received_events_url":"https://api.github.com/users/adriennea/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":40,"state":"open","created_at":"2016-01-05T15:16:05Z","updated_at":"2016-02-05T10:27:57Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-10-15T10:51:54Z","updated_at":"2016-02-05T10:27:57Z","closed_at":"2016-02-05T10:27:57Z","body":"Replacing [RB-172] (http://bugs.openmama.org/show_bug.cgi?id=172)\r\n\r\nWe have just come across this little oddity and wonder if anyone can throw any\r\nlight on what is supposed to be happening\r\n\r\nI notice from the source to the C# implementation of Open Mama 2.3.0, that the\r\nfollowing code:\r\n\r\n```\r\n        public static void open ()\r\n        {\r\n            initGetVersionWrapper();\r\n            MamaWrapper.CheckResultCode(NativeMethods.mama_open());\r\n            Interlocked.Increment(ref mMamaopen);\r\n        }\r\n```\r\n\r\nincrements the mMamaopen flag, whereas the code:\r\n\r\n```\r\n        public static void openWithProperties (string path, string filename)\r\n        {\r\n            initGetVersionWrapper();\r\n            MamaWrapper.CheckResultCode (NativeMethods.mama_openWithProperties\r\n            (path, filename));\r\n        }\r\n```\r\ndoes not. The transport's destroy() method does nothing unless mMamaopen is\r\nnon-zero, and that is causing me problems when I try to shutdown an application\r\nthat uses openWithProperties.  Making an additional call to open() gets round\r\nthe problem but doesn't really seem to be the right thing to do. Assuming it is\r\nnecessary should I expect to call open() before or after openWithProperties()\r\n"}}