Also ich habe festgestellt, dass es definitiv an
Indy liegen muss. Sogar dieser Code führt zur
Exception (s.o.) beim Programm beenden:
Delphi-Quellcode:
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, IdBaseComponent, IdComponent, IdCustomTCPServer, IdCustomHTTPServer, IdHTTPServer, idContext;
type
TForm2 =
class(TForm)
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form2: TForm2;
h: TIdHTTPServer;
implementation
{$R *.dfm}
procedure TForm2.FormCreate(Sender: TObject);
begin
h := tidhttpserver.Create(
NIL);
h.Active := True;
end;
procedure TForm2.FormDestroy(Sender: TObject);
begin
h.Free;
end;