Files
lazarus-ccr/wst/trunk/wst_indy9_utils.pas
inoussa fd170582cf + Indy TCP server listner ( FPC & Delphi )
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@217 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-20 00:25:29 +00:00

31 lines
433 B
ObjectPascal

unit wst_indy9_utils;
interface
uses SysUtils, IdTCPServer;
type
TwstIndy9Thread = class(TIdPeerThread)
protected
procedure AfterExecute; override;
procedure BeforeExecute; override;
end;
implementation
uses ActiveX;
{ TwstIndy9Thread }
procedure TwstIndy9Thread.AfterExecute;
begin
CoUninitialize();
inherited;
end;
procedure TwstIndy9Thread.BeforeExecute;
begin
inherited;
CoInitialize(nil);
end;
end.