Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8002211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:17:24+00:00 2026-06-04T16:17:24+00:00

when my application in tombstoning I need to wait until WebClient UploadStringAsync will return

  • 0

when my application in tombstoning I need to wait until WebClient UploadStringAsync will return response before being tombstoned. I Was trying to achieve it by blocking UI thread for few seconds, but i noticed, that when UI is blocked, no response is coming. When i’m releasing the lock (no matther that is Thread.sleep or ManualResetEvent) , response is comming in this same moment.
Of course, UploadStringAsync and UploadStringCompleted working on Threads other that UI.
Maybe You will knows what is the reason of these behavior?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:17:26+00:00Added an answer on June 4, 2026 at 4:17 pm

    You can’t and shouldn’t do this:

    You can’t block indefinitely when the app is being deactivated because the OS won’t let you and you may have to update indefinitely as there is no way to tell how long the web request will take, or even possible.

    Instead, you should submit data to your web server at an appropriate time (or times) during the normal usage of the app. If you want to save particualr state during deactivation you should persist this (as approrpiate) and then send it when the application is reactivated or re-launched (again as appropriate depending on the type and relevancy of the data).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Application names on Google Play don't need to be unique, and it's possible to
Application : I am working on one mid-large size application which will be used
Our application allows users to upload javascript, CSS, and HTML files. We need a
application = webapp.WSGIApplication( [(r'/main/profile/([a-f0-9]{40})', ProfileHandler)], debug=True) The regex in the above parameter will not
My application requires an on-drive map as there will be no internet access during
I'm trying to add support for tracking application usage to a WP7 app (e.g.,
Application connected to MS SQL Server will create views where a single row result
Application.Run MyWorkBook.xls!Macro1 will work (run the macro called Macro1 in the MyWorkBook.xls file). Application.Run
Application has many extension assemblies and they contain mappings for their classes. I need
Application: SAS Enterprise Guide 4.3 / Operating System: Windows XP I am trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.