Solved

A way to alert that crawling has finished?

Posted on 2011-09-29
3
269 Views
Last Modified: 2012-05-12
A way to alert that crawling has finished?
Hi,

I have this website downloader in visual c# which runs and finishes downloading files.
I am trying to find a way to alert that crawling has finished.

This download is multithreading.
Basically it parses URI given and find files insert those URIs in a queue.
Each thread takes one URI from the queue and start downloading it.

So I tried to count activeURICount which is a URI trying to download.
If there are no activeURI and queue is empty, I know that crawling is done.

But I am getting StackOverFlowException.

Is there another way you can think of to alert the crawling has finished?
0
Comment
Question by:dkim18
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 

Author Comment

by:dkim18
ID: 36814917
WebsiteCrawler.exe!Crawler.WebsiteCrawler.DequeueUri() Line 1076      C#
       WebsiteCrawler.exe!Crawler.WebsiteCrawler.ThreadRunFunction() Line 1001 + 0xc bytes      C#
       mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x9b bytes      
       mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x4d bytes      
0
 

Accepted Solution

by:
dkim18 earned 0 total points
ID: 36815467
Found my own solution.
The problem was from my property.

private int nMyCount
private int MyCount
get{nMyCount}
Set{MyCount=value}

Then I did MyCount++.
0
 

Author Closing Comment

by:dkim18
ID: 36815469
Found my own solution.
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question