2014-05-18 18:09:07 +00:00
|
|
|
|
program X2LogNamedPipeClient;
|
|
|
|
|
|
|
|
|
|
uses
|
2014-05-31 20:10:10 +00:00
|
|
|
|
// FastMM4,
|
2014-05-18 18:09:07 +00:00
|
|
|
|
Vcl.Forms,
|
2014-05-31 20:10:10 +00:00
|
|
|
|
X2Log.Intf,
|
|
|
|
|
X2Log.Client.NamedPipe,
|
|
|
|
|
X2Log.Observer.MonitorForm;
|
2014-05-18 18:09:07 +00:00
|
|
|
|
|
|
|
|
|
{$R *.res}
|
|
|
|
|
|
|
|
|
|
var
|
2014-05-31 20:10:10 +00:00
|
|
|
|
client: IX2LogObservable;
|
2014-05-18 18:09:07 +00:00
|
|
|
|
|
|
|
|
|
begin
|
2014-05-31 20:10:10 +00:00
|
|
|
|
ReportMemoryLeaksOnShutdown := True;
|
|
|
|
|
|
2014-05-18 18:09:07 +00:00
|
|
|
|
Application.Initialize;
|
|
|
|
|
Application.MainFormOnTaskbar := True;
|
2014-05-31 20:10:10 +00:00
|
|
|
|
Application.Title := 'X<>Log Named Pipe Client';
|
|
|
|
|
|
|
|
|
|
client := TX2LogNamedPipeClient.Create('X2LogTest');
|
|
|
|
|
try
|
2014-10-08 12:33:11 +00:00
|
|
|
|
with TX2LogObserverMonitorForm.Create(nil, client) do
|
|
|
|
|
try
|
|
|
|
|
ShowModal;
|
|
|
|
|
finally
|
|
|
|
|
Free;
|
|
|
|
|
end;
|
2014-05-31 20:10:10 +00:00
|
|
|
|
finally
|
|
|
|
|
client := nil;
|
|
|
|
|
end;
|
2014-05-18 18:09:07 +00:00
|
|
|
|
end.
|