{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/cppwinrt/issues/47","repository_url":"https://api.github.com/repos/Microsoft/cppwinrt","labels_url":"https://api.github.com/repos/Microsoft/cppwinrt/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/cppwinrt/issues/47/comments","events_url":"https://api.github.com/repos/Microsoft/cppwinrt/issues/47/events","html_url":"https://github.com/Microsoft/cppwinrt/issues/47","id":191611238,"number":47,"title":"Windows.Devices.Radios may be not work correctly in x86 ","user":{"login":"Saberlion","id":4142819,"avatar_url":"https://avatars.githubusercontent.com/u/4142819?v=3","gravatar_id":"","url":"https://api.github.com/users/Saberlion","html_url":"https://github.com/Saberlion","followers_url":"https://api.github.com/users/Saberlion/followers","following_url":"https://api.github.com/users/Saberlion/following{/other_user}","gists_url":"https://api.github.com/users/Saberlion/gists{/gist_id}","starred_url":"https://api.github.com/users/Saberlion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saberlion/subscriptions","organizations_url":"https://api.github.com/users/Saberlion/orgs","repos_url":"https://api.github.com/users/Saberlion/repos","events_url":"https://api.github.com/users/Saberlion/events{/privacy}","received_events_url":"https://api.github.com/users/Saberlion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-25T01:49:38Z","updated_at":"2016-11-26T16:51:47Z","closed_at":null,"body":"My OS is win10 64 bit and the OS version is 14393.0. When I build the code in x64, the program works well. However, when in x86, nothing can be gotten from Windows.Devices.Radios. The code is blow.\r\n\r\n```C++\r\n#pragma comment(lib,\"windowsapp\")\r\n#include \"winrt/Windows.Devices.Radios.h\"\r\nusing namespace winrt;\r\nusing namespace  Windows;\r\nusing namespace Windows::Devices::Radios;\r\nusing namespace Windows::Foundation;\r\nusing namespace Windows::Foundation::Collections;\r\n\r\nvoid test()\r\n{\r\n\tauto list = Radio::GetRadiosAsync();\r\n\twhile (list.Status() != AsyncStatus::Completed)\r\n\t{\r\n\t\tSleep(100);\r\n\t}\r\n\tIVectorView<Radio> radios = list.GetResults();\r\n\tint n = radios.Size();\r\n\tauto radioItem = radios.First();\r\n\r\n\tfor (int i = 0; i < radios.Size(); i++)\r\n\t{\r\n\t\tRadio r = radioItem.Current();\r\n\t\tradioItem.MoveNext();\r\n\t}\r\n\treturn;\r\n}\r\nint main()\r\n{\r\n\tinitialize();\r\n\ttest();\r\n\treturn 0;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/cppwinrt/issues/comments/263073563","html_url":"https://github.com/Microsoft/cppwinrt/issues/47#issuecomment-263073563","issue_url":"https://api.github.com/repos/Microsoft/cppwinrt/issues/47","id":263073563,"user":{"login":"kennykerr","id":9845234,"avatar_url":"https://avatars.githubusercontent.com/u/9845234?v=3","gravatar_id":"","url":"https://api.github.com/users/kennykerr","html_url":"https://github.com/kennykerr","followers_url":"https://api.github.com/users/kennykerr/followers","following_url":"https://api.github.com/users/kennykerr/following{/other_user}","gists_url":"https://api.github.com/users/kennykerr/gists{/gist_id}","starred_url":"https://api.github.com/users/kennykerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennykerr/subscriptions","organizations_url":"https://api.github.com/users/kennykerr/orgs","repos_url":"https://api.github.com/users/kennykerr/repos","events_url":"https://api.github.com/users/kennykerr/events{/privacy}","received_events_url":"https://api.github.com/users/kennykerr/received_events","type":"User","site_admin":false},"created_at":"2016-11-26T16:51:47Z","updated_at":"2016-11-26T16:51:47Z","body":"I found a machine with two radio devices (my desktop has none). On x64 GetRadiosAsync produces a collection with two elements, but on x86 it returns an empty collection. This seems unrelated to C++/WinRT but I will check with the team responsible for this API."}}
{"actor":{"display_login":"kennykerr"}}