Asynchronous vs GUI Thread
I'm developing a FTP client application with async. methods. Using delegates and begininvoke.
But, still the application doesn't seem to be multithreaded from main GUI's thread cuz during download it halts and the GUI interface blanks out. It returns to normal only after the download has been done.
The code doesnt' return to "// other processing stuff //////////" from below till downloading is complete.
For thsoe who're interested in code:
DelegateDownload d = new DelegateDownload (b.Download);
d.BeginInvoke(...., ...., ....., ...., new AsyncCallback(b.DownloadCallback);
// other processing stuff //////////
} //end of class A
public void Download(..., ...., ...., ....)
public void DownloadCallback(IAsyncResult ar)
} //end of class B
I got the solutions. The solution above is correct.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL