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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:49:34+00:00 2026-06-07T11:49:34+00:00

I am trying to understand for loop working in a special case, if someone

  • 0

I am trying to understand for loop working in a special case, if someone can explain it will greatly help me.

Ok so what I am doing is downloading emails (like 50 at a time) from a mailbox say Hotmail (I am using MailBEE.NET objects for that) then upon download I am saving some things like sender name, attachments names (if any) in database and so on… It is a fairly long process considering the fact that the program first has to login on hotmail server then download the message and then run query to save stuff in db.

My question is if the function for doing all this work is defined in a separate assembly (dll file) and the calling program is a web based application which is using this assembly as reference, what will happen if I keep calling this function in for loop ? does the for loop wait for the function to finish ? or it will keep on calling this function multiple times ?

What better approach you suggest to do this work ?

Thanks.

  • 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-07T11:49:35+00:00Added an answer on June 7, 2026 at 11:49 am

    It depends how you write the code that performs the downloading. If its just a method (albeit in a separate assembly), then your web interface will just new-up another instance and it will perform more than one loop download at a time.

    You could consider using some sort of queue functionality, where you add a download request to a queue, and then have another worker/service using the queue to get its parameters, username/password/settings etc, on what to download.

    I hope this helps, let me know if you need anything further.

    Regards
    Phil

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

Sidebar

Related Questions

I'm trying to understand how a while loop looks in IL. I have written
I'm trying to understand why my code get stuck in the for loop of
I'm trying to understand the behavior of Scala for-loop implicit box/unboxing of numerical types.
I'm trying to understand the timing of the event loop with animate() and DeferredCommand.
I'm trying to understand some assembler code inside a loop. The loop runs from
While trying to explain to someone why a C++ static array could not by
I am working on trying to better understand the jQuery.each() method. Here's an example
I am trying to understand the for loop better. I have the following variables:
Trying to understand the concepts of setting constant speed on game loop. My head
What I'm trying to understand is how to loop a simple beat in a

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.