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}
|
|
|
|
unit wst_indy10_utils;
|
|
|
|
|
|
|
|
interface
|
|
|
|
uses
|
|
|
|
SysUtils, IdThread;
|
|
|
|
|
|
|
|
type
|
|
|
|
|
|
|
|
TwstIndy10Thread = class(TIdThreadWithTask)
|
|
|
|
protected
|
|
|
|
procedure AfterExecute(); override;
|
|
|
|
procedure BeforeExecute(); override;
|
|
|
|
end;
|
|
|
|
|
|
|
|
implementation
|
2009-01-27 16:53:43 +00:00
|
|
|
|
|
|
|
{$IFDEF WST_DELPHI}
|
|
|
|
uses
|
|
|
|
ActiveX;
|
|
|
|
{$ENDIF WST_DELPHI}
|
2008-12-17 21:29:09 +00:00
|
|
|
|
|
|
|
{ TwstIndy10Thread }
|
|
|
|
|
|
|
|
procedure TwstIndy10Thread.AfterExecute();
|
|
|
|
begin
|
2009-01-27 16:53:43 +00:00
|
|
|
{$IFDEF WST_DELPHI}
|
2008-12-17 21:29:09 +00:00
|
|
|
CoUninitialize();
|
2009-01-27 16:53:43 +00:00
|
|
|
{$ENDIF WST_DELPHI}
|
2008-12-17 21:29:09 +00:00
|
|
|
inherited;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TwstIndy10Thread.BeforeExecute();
|
|
|
|
begin
|
|
|
|
inherited;
|
2009-01-27 16:53:43 +00:00
|
|
|
{$IFDEF WST_DELPHI}
|
2008-12-17 21:29:09 +00:00
|
|
|
CoInitialize(nil);
|
2009-01-27 16:53:43 +00:00
|
|
|
{$ENDIF WST_DELPHI}
|
2008-12-17 21:29:09 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
end.
|