Win8 App doesn't open after 20 times then fails with: Not enough quota is available to process this command. (Exception from HRESULT: 0x80070718)

1

Hi this is my 1st question asked:

I've got a WinRT app (C#/XAML) that opens fine the first 20 times then fails to open after that.

In the windows event application log the (unhelpful) message is that "App did not launch within its allotted time". If I attach Visual Studio debugger, it looks like the underlying error is "Not enough quota is available to process this command. (Exception from HRESULT: 0x80070718)".

Edit: it looks like it may be a problem with bg agent duplicate registration... will update

windows-runtime
asked on Stack Overflow Jan 26, 2013 by Jason Roberts • edited Jan 26, 2013 by Jason Roberts

1 Answer

3

The underlying "Not enough quota is available to process this command. (Exception from HRESULT: 0x80070718)" message was being caused by:

BackgroundAccessStatus status = await BackgroundExecutionManager.RequestAccessAsync();

being called on every load of the app. The 21st load and subsequent loads would all fail with "App did not launch within its allotted time" appear in application event log.

Making the call only happen only the first time a user loads the app has fixed the problem, the app now opens 30+ times with no error.

answered on Stack Overflow Jan 26, 2013 by Jason Roberts • edited Jan 26, 2013 by Ken White

User contributions licensed under CC BY-SA 3.0