dkim18
asked on
A way to alert that crawling has finished?
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Found my own solution.
ASKER
WebsiteCrawler.exe!Crawler
mscorlib.dll!System.Thread
mscorlib.dll!System.Thread