Thread Error: The handle is invalid (6)
When developing a Delphi multi-threaded application the following error is generated when a thread object is first created:
Project XXXX.exe raised exception class EThread with message 'Thread Error: The handle is invalid (6)'.
The constructor for TThread is not being called.
In the constructor for your thread class include the line:
inherited Create( True );
inherited Create( False );
These notes are believed to be correct for Delphi 6, but may apply to other versions as well.
About the author: Brian Cryer is a dedicated software developer and webmaster. For his day job he develops websites and desktop applications as well as providing IT services. He moonlights as a technical author and consultant.