May 2004
Intermediate to advanced
888 pages
22h 31m
English
In some applications, it is useful to enable the user to continue working with the application while some processing is happening in the background. Chapter 14, “Threading in Delphi for .NET,” covers Threads in detail and how parallel processing is accomplished. Based on the treading model, streams provide the ability to allow asynchronous access to the underlying stream. Listing 12.8 illustrates this technique for reading a FileStream asynchronously.
1: unit WinForm; 2: 3: interface 4: 5: uses 6: System.Drawing, System.Collections, System.ComponentModel, 7: System.Windows.Forms, System.Data, System.IO, System.Threading; 8: 9: type 10: 11: TWinForm = class(System.Windows.Forms.Form) ... |
Read now
Unlock full access