TIBCTraceService.ListTraceSessions and Firebird 2.5.1?

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
tsteinmaurer
Posts: 52
Joined: Thu 17 Dec 2009 08:25

TIBCTraceService.ListTraceSessions and Firebird 2.5.1?

Post by tsteinmaurer » Wed 05 Oct 2011 06:37

Hello,

while the trace stuff in IBDAC worked with Firebird 2.5.0, switching the same application to Firebird 2.5.1 gives troubles. TIBCTraceService.ListTraceSessions crahes the server if there are active trace sessions. The Trace API works fine when using the command-line utilities included in Firebird 2.5.1.

I'm using IBDAC 4.0.1 on Win7 Prof. 64-bit with Firebird 2.5.1 SuperClassic 64-bit.

Thanks,
Thomas

AndreyZ

Post by AndreyZ » Wed 05 Oct 2011 15:49

I cannot reproduce the problem. I've used the following code:

Code: Select all

Memo1.Clear;
Memo2.Clear;
IBCTraceService1.Attach;
IBCTraceService1.StartTrace;
Memo1.Lines.Add(IBCTraceService1.GetNextLine);
IBCTraceService2.Attach;
IBCTraceService2.ListTraceSessions;
while not IBCTraceService2.Eof do
  Memo2.Lines.Add(IBCTraceService2.GetNextLine);
IBCTraceService2.Detach;
IBCTraceService1.Detach;
, and the were no problems. Please check if this code works for you.

tsteinmaurer
Posts: 52
Joined: Thu 17 Dec 2009 08:25

Post by tsteinmaurer » Wed 05 Oct 2011 16:47

Hello,

are you trying with Firebird 32-bit or 64-bit. Is your Firebird Server running as a service or as application?

Thanks,
Thomas

AndreyZ

Post by AndreyZ » Fri 07 Oct 2011 09:19

I tried the code above with Firebird 2.5.1 both 32-bit and 64-bit running as a service under Windows 7 x64. There were no problems with both versions of Firebird.

tsteinmaurer
Posts: 52
Joined: Thu 17 Dec 2009 08:25

Post by tsteinmaurer » Thu 27 Oct 2011 05:55

FYI: It has been confirmed by the Firebird engineers, that there is a bug in Firebird 2.5.1. It has been fixed and the bugfix is available in the 2.5.2 snapshots.

AndreyZ

Post by AndreyZ » Thu 27 Oct 2011 15:58

Thank you for the information, it may be usefull for all people who visit our forum.

Post Reply