DelphiFAQ Home Search:

Threads in Delphi 6

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

The most important changes in thread programming with Delphi 6 versus Delphi 5 are:

  1. Synchronize() can only be called from secondary threads and not the main thread.
  2. CheckSynchronize() must be pumped. Under a normal GUI the TApplication object does this for you in its Idle method.
  3. Unhandled exceptions in TThread.Execute() will no longer bring down the entire app. ThreadProc now has a try/except and there's now a TThread.FatalException property. This means that if you are using a try/except for the sole purpose of app stability (and not to handle the exception) then this try/except is now redundant.

Content-type: text/html

Comments:

2007-06-13, 00:44:32
anonymous from India  
This is very usefull info as at presently I am working on thread application.
Best regareds,
AJP

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: