{"action":"created","issue":{"url":"https://api.github.com/repos/dr-soft/mini_al/issues/28","repository_url":"https://api.github.com/repos/dr-soft/mini_al","labels_url":"https://api.github.com/repos/dr-soft/mini_al/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/dr-soft/mini_al/issues/28/comments","events_url":"https://api.github.com/repos/dr-soft/mini_al/issues/28/events","html_url":"https://github.com/dr-soft/mini_al/issues/28","id":348710470,"node_id":"MDU6SXNzdWUzNDg3MTA0NzA=","number":28,"title":"CoInitializeEx issue","user":{"login":"jesusdesantos","id":2988493,"node_id":"MDQ6VXNlcjI5ODg0OTM=","avatar_url":"https://avatars2.githubusercontent.com/u/2988493?v=4","gravatar_id":"","url":"https://api.github.com/users/jesusdesantos","html_url":"https://github.com/jesusdesantos","followers_url":"https://api.github.com/users/jesusdesantos/followers","following_url":"https://api.github.com/users/jesusdesantos/following{/other_user}","gists_url":"https://api.github.com/users/jesusdesantos/gists{/gist_id}","starred_url":"https://api.github.com/users/jesusdesantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesusdesantos/subscriptions","organizations_url":"https://api.github.com/users/jesusdesantos/orgs","repos_url":"https://api.github.com/users/jesusdesantos/repos","events_url":"https://api.github.com/users/jesusdesantos/events{/privacy}","received_events_url":"https://api.github.com/users/jesusdesantos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-08T12:47:15Z","updated_at":"2018-08-09T17:35:53Z","closed_at":null,"author_association":"NONE","body":"mini_al is initializing the COM library using COINIT_MULTITHREADED but sometimes applications need a different value for this. For example, in our case we need COINIT_APARTMENTTHREADED. I made the following change to the library to properly support this.\r\n\r\n    #ifndef MAL_COINIT_VALUE\r\n        #define MAL_COINIT_VALUE 0  // 0 = COINIT_MULTITHREADED\r\n    #endif\r\n\r\n    mal_CoInitializeEx(pContext, NULL, MAL_COINIT_VALUE);\r\n\r\nNote that this is only needed for the main thread."},"comment":{"url":"https://api.github.com/repos/dr-soft/mini_al/issues/comments/411837616","html_url":"https://github.com/dr-soft/mini_al/issues/28#issuecomment-411837616","issue_url":"https://api.github.com/repos/dr-soft/mini_al/issues/28","id":411837616,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTgzNzYxNg==","user":{"login":"jesusdesantos","id":2988493,"node_id":"MDQ6VXNlcjI5ODg0OTM=","avatar_url":"https://avatars2.githubusercontent.com/u/2988493?v=4","gravatar_id":"","url":"https://api.github.com/users/jesusdesantos","html_url":"https://github.com/jesusdesantos","followers_url":"https://api.github.com/users/jesusdesantos/followers","following_url":"https://api.github.com/users/jesusdesantos/following{/other_user}","gists_url":"https://api.github.com/users/jesusdesantos/gists{/gist_id}","starred_url":"https://api.github.com/users/jesusdesantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesusdesantos/subscriptions","organizations_url":"https://api.github.com/users/jesusdesantos/orgs","repos_url":"https://api.github.com/users/jesusdesantos/repos","events_url":"https://api.github.com/users/jesusdesantos/events{/privacy}","received_events_url":"https://api.github.com/users/jesusdesantos/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T17:35:53Z","updated_at":"2018-08-09T17:35:53Z","author_association":"NONE","body":"Sorry, I did't make myself very clear. Yes, you need to do _CoInitializeEx_ per thread but the proposed macro should be only used in the main thread because that's the only thread that can conflict with the user code. But I am not sure if using different values in different _CoInitializeEx_ is correct. At least, in our code, I only changed the main thread and it is working fine."}}
{"actor":{"display_login":"jesusdesantos"}}