Page 1 of 1

I WOULD LIKE AN EXAMPLE TIBCTraceService

Posted: Fri 28 Oct 2016 17:24
by lucianovg
I WOULD LIKE AN EXAMPLE TIBCTraceService

Re: I WOULD LIKE AN EXAMPLE TIBCTraceService

Posted: Mon 31 Oct 2016 14:17
by ViktorV
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);