title: Native Azure Mobile Service (C++) Crashes When Disconnected
body: <p>I have a native WinRT app that using Azure Mobile for its backend. It works great so long as it can reach the service. If the internet is disconnected, any queries will crash the app with no warning or place to catch the exception, as the crash happens in an async call. Here's the minimum code I've found that reproduces the issue:</p>
  
  <pre><code>azure::mobile::client c(L"https://MYSERVICE.azure-mobile.net/", L"MYKEY");
  azure::mobile::table table(c, L"MYTABLE");
  table.read(); // Adding any .then continuation also leads to exception
  </code></pre>
  
  <p>And here's the exception: </p>
  
  <blockquote>
    <p>Unhandled exception at 0x018DCFF6 (msvcr120d_app.dll) in : An invalid parameter was passed to a function that considers invalid parameters fatal.</p>
  </blockquote>
  
  <p>If I'm supposed to detect connectivity using the azure mobile API before making any queries, I can't find any way to do that. I don't think simply checking internet connectivity is a sufficient answer, and I would also think pinging the service manually before making any queries is a unnecessarily obtuse way to detect an error. It seems like the query results are supposed to come back empty if there was an error, but the code never gets that far. Am I missing something?</p>
  
  <p><strong>Update</strong>: It seems the app will also crash if I successfully connect to the service but the table hasn't been created. Again, there is no ability to detect this scenario using the API that I can find.</p>