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 8154241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:16:34+00:00 2026-06-06T16:16:34+00:00

I have a Monodroid application that does many webrequests. I am making requests from

  • 0

I have a Monodroid application that does many webrequests. I am making requests from activities. Because of this I have the need for a queue to process my requests outside of my activities. This is to avoid multiple requests being made at the same time.

Because I am making my requests on another thread using ThreadPool.QueueUserWorkItem it seems like if a user opens an activity, starts a request then goes back opens another activity and starts another request before the first request has finished the use of webrequests lock up and are no longer functional.

What would the best approach be to queue request tasks with callbacks outside of the activity or does anyone know/have an example of something similar? I think that it would need to deal with cases like explained above where the activity could be closed/destroyed before the task completes. This may mean that the task can be cancelled or the task could run but not update the UI because it no longer exists.

In my case the requests that I make are within different functions doing different things so the callbacks to update the UI are not always the same functions. Also the functions that I am using to make the requests have different parameters. I am not sure if these points make it harder/easier to create a solution to this problem but I presume that I will need to rework a lot of my code.

  • 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-06T16:16:36+00:00Added an answer on June 6, 2026 at 4:16 pm

    a) Use asynchronous methods to make your requests so that you’re not hanging threadpool threads.

    b) Increase the connection limit for the domains you are requesting from.

    ServicePointManager.FindServicePoint(uri).ConnectionLimit=10000;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have begun evaluating MonoDroid. (I've built many apps using Android+Eclipse) I created new-from-template
I have problems implementing the ItemizedOverlay on monodroid from this tutorial: http://developer.android.com/resources/tutorials/views/hello-mapview.html , Does
I have a monodroid application that uses a .net library that contains normal .resx
My monodroid application builds and runs fine, but breakpoints are not being hit. This
I have seen some docs around suggesting that monodroid could support Entity Manager. Is
Have some dates in my local Oracle 11g database that are in this format:
I've got a monodroid application that has several files with configuration data that needs
Does anyone have a Google Maps solution for MonoDroid? To make it work, we
I am new to MonoDroid, I have developed an application on MonoTouch which uses
I have a trial version of MonoDroid and I know that you can't deploy

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.