2008-12-17 21:29:09 +00:00
|
|
|
{
|
|
|
|
This file is part of the Web Service Toolkit
|
|
|
|
Copyright (c) 2008 by Inoussa OUEDRAOGO
|
|
|
|
|
|
|
|
This file is provide under modified LGPL licence
|
|
|
|
( the files COPYING.modifiedLGPL and COPYING.LGPL).
|
|
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
}
|
|
|
|
|
|
|
|
{$INCLUDE wst_global.inc}
|
2007-07-20 00:25:29 +00:00
|
|
|
unit wst_indy9_utils;
|
|
|
|
|
|
|
|
interface
|
|
|
|
uses SysUtils, IdTCPServer;
|
|
|
|
|
|
|
|
type
|
|
|
|
|
|
|
|
TwstIndy9Thread = class(TIdPeerThread)
|
|
|
|
protected
|
|
|
|
procedure AfterExecute; override;
|
|
|
|
procedure BeforeExecute; override;
|
|
|
|
end;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
uses ActiveX;
|
2008-12-17 21:29:09 +00:00
|
|
|
|
2007-07-20 00:25:29 +00:00
|
|
|
{ TwstIndy9Thread }
|
|
|
|
|
|
|
|
procedure TwstIndy9Thread.AfterExecute;
|
|
|
|
begin
|
|
|
|
CoUninitialize();
|
|
|
|
inherited;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TwstIndy9Thread.BeforeExecute;
|
|
|
|
begin
|
|
|
|
inherited;
|
|
|
|
CoInitialize(nil);
|
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|