Threading


hi all,

i have code lock function called synchronize. function synchronize data remote server. function lock application untill gets reply server. time server busy of down , reply takes lot of time , application stucked.

how can solve problem using threading or solution.

please help.
best regards...

let me see if understand problem. trying synchronize access application remote server. using lock, tie entire application. typical scenario want perform call server asynchronously on background thread. foreground thread can update ui , potentially cancel remote call if it's taking long. (for instance, provide a "cancel update" button on ui.) article has discussion of exact challenge , how solve background worker threads:
http://msdn.microsoft.com/msdnmag/issues/04/01/net/default.aspx


Archived Forums V  >  Visual C# Language



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'