I WOULD LIKE AN EXAMPLE TIBCTraceService

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
lucianovg
Posts: 2
Joined: Fri 14 Apr 2006 14:19

I WOULD LIKE AN EXAMPLE TIBCTraceService

Post by lucianovg » Fri 28 Oct 2016 17:24

I WOULD LIKE AN EXAMPLE TIBCTraceService

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: I WOULD LIKE AN EXAMPLE TIBCTraceService

Post by ViktorV » Mon 31 Oct 2016 14:17

Unfortunately, we don't have a demo project showing the usage of the TIBCTraceService component.
To use the TIBCTraceService component, you can use the following guidelines:
- set the required properties for connecting to the database:

Code: Select all

IBCTraceService.Server := Server;
IBCTraceService.Port := Port;
IBCTraceService.Username := Username;
IBCTraceService.Password := Password;
IBCTraceService.ClientLibrary := ClientLibrary;
- set in the property IBCTraceService.Config the session configuration. More information about the session configuration, you can get on our website: https://www.devart.com/ibdac/docs/index ... config.htm
- connect to the database:

Code: Select all

IBCTraceService.Attach;
- run trace service:

Code: Select all

IBCTraceService.StartTrace;
- to receive the information about tracing, you should use the methods IBCTraceService.GetNextLine, IBCTraceService.GetNextChunk:

Code: Select all

while not IBCTraceService.Eof do
  Memo.Lines.Add(IBCTraceService.GetNextLine);

Post Reply