Avoid app from crashing during the loop – C#

I was new on C#.Net when i tried to create an app for scraping websites. At first i am using a single thread to handle loop logic which causes the app to crash several times if it involves a huge amount of data and leave all activity on foreground.

C# has background worker which can help avoid system crashes and more resource wise.

check this simple code , this shows how background workers being used


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s