Page 1 of 1

TIBCTraceService.ListTraceSessions and Firebird 2.5.1?

Posted: Wed 05 Oct 2011 06:37
by tsteinmaurer
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

Posted: Wed 05 Oct 2011 15:49
by AndreyZ
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.

Posted: Wed 05 Oct 2011 16:47
by tsteinmaurer
Hello,

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

Thanks,
Thomas

Posted: Fri 07 Oct 2011 09:19
by AndreyZ
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.

Posted: Thu 27 Oct 2011 05:55
by tsteinmaurer
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.

Posted: Thu 27 Oct 2011 15:58
by AndreyZ
Thank you for the information, it may be usefull for all people who visit our forum.