I'm facing problem with suspend functionality in windows 10 universal application. For first time log in i have some logic with requests to api in order to load information for the user just logged in. During this initial loading if "start" button is pressed app should go through suspending but it does not reaches "OnSuspending". I follow some step in order to trouble shoot the problem. In generated mini dump i found something strange:
EXCEPTION_CODE: (NTSTATUS) 0xc0000194 - {EXCEPTION} Possible deadlock condition.
STACK_TEXT:
ntdll!NtWaitForMultipleObjects+0x6
KERNELBASE!WaitForMultipleObjectsEx+0x112
twinapi_appcore!Event::WaitWithFreeUnusedLibraries+0x88
twinapi_appcore!Windows::ApplicationModel::Core::CoreApplicationFactory::RunInternal+0x208
twinapi_appcore!Windows::ApplicationModel::Core::CoreApplicationFactory::Run+0x12
Windows_UI_Xaml!RunInActivationMode+0x58
Windows_UI_Xaml!DirectUI::FrameworkApplicationFactory::Start+0x32
0x2d0684
BUCKET_ID: c0000194_twinapi_appcore!Event::WaitWithFreeUnusedLibraries+88
I can reproduce it only on device and not on emulator.