c# - background worker blocking main thread .net -


we using background workder thread (c#.net) performing tasks asynchronously in windows application (developed using .net 3.5) ....registered do_work event (invoked windows timer calling runworkerasync) makes webservice call fetch data . found whenever do_work firing fetching data , there delay in processsing of main thread . e.g

scenario 1 : main thread open forms in 2-3 seconds when do_work event not fired

scenario 2 : main thread open forms in 5-8 seconds when do_work event fired

note : 1.both main thread , background workder (do_work) calls webservice fetching data 2.background worker task totally independent of main thread task 3.we using multi-core machine only....

any appreciable , thanks

we able resolve issue applying below setting in client configuration file ..

refer .... blogs.msdn.com/b/darrenj/archive/2005/03/07/386655.aspx


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -