{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/202","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/202/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/202/events","html_url":"https://github.com/chrsmith/bwapi/issues/202","id":58820933,"number":202,"title":"BWAPI fails to load AIModule or crashes","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/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-24T23:03:34Z","updated_at":"2015-02-24T23:03:35Z","closed_at":"2015-02-24T23:03:34Z","body":"```\nWhen I build the ExampleAIModule in Debug mode BWAPI fails to load it.\n\nThe LoadLibrary call in BWAPI Returns NULL and GetLastError says 998:\nInvalid memory access. either something is wrong with dynamic linking or\nthe BWAPI::Init() call in the DLL makes problems:\nhttp://support.microsoft.com/kb/196069\n\nSometimes there also seems to be a problem with BWTA at readMap().\n\nWhen I used the debug BWAPI.dll with the Release BWAPI.lib together with\nBWTA and ExampleAIModule in Release everything crashed on game start (maybe\nreadMap()??) I used the VC++ debugger and it stopped at GameImpl.cpp line\n1007 after the ASM call: popad (GameImpl::printEx\n)\n\n```\n\n-----\nOriginal issue reported on code.google.com by `tren...@gmail.com` on 19 Mar 2010 at 1:20"},"comment":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/comments/75867799","html_url":"https://github.com/chrsmith/bwapi/issues/202#issuecomment-75867799","issue_url":"https://api.github.com/repos/chrsmith/bwapi/issues/202","id":75867799,"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-24T23:03:35Z","updated_at":"2015-02-24T23:03:35Z","body":"```\nThe ExampleAIModule that is in the SVN (similar to the ExampleAIModule that is \nin releases of BWAPI Beta, but with all BWTA references commented out/removed), \ncan now be built and ran in Debug mode with BWAPI, assuming BWAPI is also \ncompiled in Debug mode. The same also goes for the ExampleAIClient and \nAIModuleLoader - they can be built and ran in debug mode with a debug mode \nversion of BWAPI as long as all BWTA references are removed.\n\nSo this issue with BWAPI is fixed.\n\nThe only obstacle left to compiling a full ExampleAIModule (that is, with \nBWTA), is an issue with BWTA. I'll look at BWTA and see if I can get it to \ncompile in Debug mode in such a way that it works with the ExampleAIModule, but \nI can't make any promises.\n\nI'll include Debug mode versions of BWAPI.dll, BWAPI.lib, and BWAPIClient.lib \nin the next release of BWAPI Beta to make it easier to compile the \nExampleAIModule in Debug mode (at least once you comment out references to \nBWTA).\n```\n\n-----\nOriginal comment by `lowerlo...@gmail.com` on 23 Jun 2010 at 4:53\n* Changed state: **Fixed**\n* Added labels: **Type-Defect**"}}