{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/342","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/342/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/342/events","html_url":"https://github.com/chrsmith/bwapi/issues/342","id":58671261,"number":342,"title":"Access violation in GameImpl::addUnitCommand","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Component-Logic","name":"Component-Logic","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Priority-Critical","name":"Priority-Critical","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Type-Defect","name":"Type-Defect","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Usability","name":"Usability","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-24T00:01:25Z","updated_at":"2015-02-24T00:01:25Z","closed_at":"2015-02-24T00:01:25Z","body":"```\nMy Bot does it's stuff and at the end selects 8 idle and completed zealots and \nissues an AttackMove command. I always get an access violation in the \nGameImpl::addUnitCommand method because the unitcommandCount index is already \noutside of the accessed array.\n\nThis happens on BWAPI 3.4 Beta and also newest HEAD (r3404) running on Windows \n7 64bit. (Using the a BWAPIClient Bot)\n\nWhen the problem is in my bot, then I don't really know how I would be able to \ngenerate over 20000 unit commands before the server processes them.\nDo we need to make a context switch so that the server can process the commands?\n```\n\n-----\nOriginal issue reported on code.google.com by `tren...@gmail.com` on 15 Jan 2011 at 5:23\n\nAttachments:\n* [check_array_out_of_bounds.patch](https://storage.googleapis.com/google-code-attachments/bwapi/issue-342/comment-0/check_array_out_of_bounds.patch)\n"},"comment":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/comments/75667364","html_url":"https://github.com/chrsmith/bwapi/issues/342#issuecomment-75667364","issue_url":"https://api.github.com/repos/chrsmith/bwapi/issues/342","id":75667364,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T00:01:25Z","updated_at":"2015-02-24T00:01:25Z","body":"\n\n-----\nOriginal comment by `AHeinerm` on 18 Jan 2011 at 3:28\n* Added labels: **Usability**, **Priority-Critical**, **Component-Logic**"}}