Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
HandledThread.pas
Package: freeburner.rar [view]
Upload User: wanyu_2000
Upload Date: 2021-02-21
Package Size: 527k
Code Size: 1k
Category:
DVD
Development Platform:
Delphi
- {-----------------------------------------------------------------------------
- Unit Name: HandledThread
- Author: Paul Fisher / Andrew Semack
- Purpose: Base class for the Burn and erase threads
- History:
- -----------------------------------------------------------------------------}
- unit HandledThread;
- interface
- uses
- Windows, Classes, SysUtils, Forms, Messages;
- type
- THandledThread = class(TThread)
- private
- FException: Exception;
- procedure DoHandleException;
- protected
- procedure HandleException; virtual;
- public
- end;
- implementation
- { THandledThread }
- procedure THandledThread.DoHandleException;
- begin
- if GetCapture <> 0 then
- SendMessage(GetCapture, WM_CANCELMODE, 0, 0);
- if FException is Exception then
- Application.ShowException(FException)
- else
- SysUtils.ShowException(FException, nil);
- end;
- procedure THandledThread.HandleException;
- begin
- FException := Exception(ExceptObject);
- try
- if not (FException is EAbort) then
- Synchronize(DoHandleException);
- finally
- FException := nil;
- end;
- end;
- end.